]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/inline-trait-and-foreign-items.stderr
Auto merge of #68820 - WaffleLapkin:remove_finished_from_map_while, r=LukasKalbertodt
[rust.git] / src / test / ui / lint / inline-trait-and-foreign-items.stderr
1 error[E0518]: attribute should be applied to function or closure
2   --> $DIR/inline-trait-and-foreign-items.rs:30:5
3    |
4 LL |     #[inline]
5    |     ^^^^^^^^^
6 LL |     static X: u32;
7    |     -------------- not a function or closure
8
9 error[E0518]: attribute should be applied to function or closure
10   --> $DIR/inline-trait-and-foreign-items.rs:33:5
11    |
12 LL |     #[inline]
13    |     ^^^^^^^^^
14 LL |     type T;
15    |     ------- not a function or closure
16
17 warning: `#[inline]` is ignored on constants
18   --> $DIR/inline-trait-and-foreign-items.rs:7:5
19    |
20 LL |     #[inline]
21    |     ^^^^^^^^^
22    |
23 note: the lint level is defined here
24   --> $DIR/inline-trait-and-foreign-items.rs:4:9
25    |
26 LL | #![warn(unused_attributes)]
27    |         ^^^^^^^^^^^^^^^^^
28    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29    = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
30
31 error[E0518]: attribute should be applied to function or closure
32   --> $DIR/inline-trait-and-foreign-items.rs:11:5
33    |
34 LL |     #[inline]
35    |     ^^^^^^^^^
36 LL |     type T;
37    |     ------- not a function or closure
38
39 warning: `#[inline]` is ignored on constants
40   --> $DIR/inline-trait-and-foreign-items.rs:18:5
41    |
42 LL |     #[inline]
43    |     ^^^^^^^^^
44    |
45    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
46    = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
47
48 error[E0518]: attribute should be applied to function or closure
49   --> $DIR/inline-trait-and-foreign-items.rs:22:5
50    |
51 LL |     #[inline]
52    |     ^^^^^^^^^
53 LL |     type T = Self;
54    |     -------------- not a function or closure
55
56 error[E0518]: attribute should be applied to function or closure
57   --> $DIR/inline-trait-and-foreign-items.rs:25:5
58    |
59 LL |     #[inline]
60    |     ^^^^^^^^^
61 LL |     type U = impl Trait;
62    |     -------------------- not a function or closure
63
64 error: could not find defining uses
65   --> $DIR/inline-trait-and-foreign-items.rs:26:5
66    |
67 LL |     type U = impl Trait;
68    |     ^^^^^^^^^^^^^^^^^^^^
69
70 error: aborting due to 6 previous errors
71
72 For more information about this error, try `rustc --explain E0518`.