]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/inline-trait-and-foreign-items.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / 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 note: the lint level is defined here
8 --> $DIR/inline-trait-and-foreign-items.rs:4:9
9 |
10 LL | #![warn(unused_attributes)]
11 | ^^^^^^^^^^^^^^^^^
12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
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: could not find defining uses
65 --> $DIR/inline-trait-and-foreign-items.rs:26:14
66 |
67 LL | type U = impl Trait;
68 | ^^^^^^^^^^
69
70 error: aborting due to 6 previous errors; 2 warnings emitted
71
72 For more information about this error, try `rustc --explain E0518`.