Closed
Description
I tried to look for this, but I couldn't find an existing issue. Or is this expected behaviour?
Putting attributes that exist (though the arguments can be bogus) seem to be ignored when one would expect an error, or at least a warning. E.g like this:
#[repr(bogus_statement)]
let x = 0;
or
#[inline(bogus_statement)]
let x = 0;
This seems to be the case on stable, beta and nightly.
More examples here: https://play.rust-lang.org/?gist=b48bfc076d29c770d8d2c81f2f99f0bb