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