Open U007D opened 6 years ago
Tried same on Mac OS X 10.12.6 and with today's nightly (rustc 1.24.0-nightly (5a2465e2b 2017-12-06)
) on both OSX and Ubuntu: same result.
Only literals are supported in the attribute. I see you have other bug(s) already for that, so I'll close this one out.
This is definitely because of the const you're trying to use, I would like to support consts and suspect its possible, I'm re-opening to track investigating consts in the display attribute.
I'm getting:
I tried using the new
#[macro_use] extern crate failure;
syntax as well as the older#[macro_use] extern crate failure_derive;
syntax. Same result.I'm on
failure 0.1.1
,failure_derive 0.1.1
andrustc 1.24.0-nightly (f9b0897c5 2017-12-02)
on Ubuntu.Here is the entire module:
Any ideas?