]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/multiple-invalid.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / attributes / multiple-invalid.stderr
1 error[E0518]: attribute should be applied to function or closure
2   --> $DIR/multiple-invalid.rs:4:1
3    |
4 LL | #[inline]
5    | ^^^^^^^^^
6 ...
7 LL | const FOO: u8 = 0;
8    | ------------------ not a function or closure
9
10 error: attribute should be applied to a function definition
11   --> $DIR/multiple-invalid.rs:6:1
12    |
13 LL | #[target_feature(enable = "sse2")]
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 LL |
16 LL | const FOO: u8 = 0;
17    | ------------------ not a function definition
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0518`.