fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.4 KiB74 linesraw
1warning: `#[inline]` is ignored on constants
2  --> $DIR/inline-trait-and-foreign-items.rs:7:5
3   |
4LL |     #[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
9note: the lint level is defined here
10  --> $DIR/inline-trait-and-foreign-items.rs:4:9
11   |
12LL | #![warn(unused_attributes)]
13   |         ^^^^^^^^^^^^^^^^^
14
15error[E0518]: attribute should be applied to function or closure
16  --> $DIR/inline-trait-and-foreign-items.rs:11:5
17   |
18LL |     #[inline]
19   |     ^^^^^^^^^
20LL |     type T;
21   |     ------- not a function or closure
22
23warning: `#[inline]` is ignored on constants
24  --> $DIR/inline-trait-and-foreign-items.rs:18:5
25   |
26LL |     #[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
32error[E0518]: attribute should be applied to function or closure
33  --> $DIR/inline-trait-and-foreign-items.rs:22:5
34   |
35LL |     #[inline]
36   |     ^^^^^^^^^
37LL |     type T = Self;
38   |     -------------- not a function or closure
39
40error[E0518]: attribute should be applied to function or closure
41  --> $DIR/inline-trait-and-foreign-items.rs:25:5
42   |
43LL |     #[inline]
44   |     ^^^^^^^^^
45LL |     type U = impl Trait;
46   |     -------------------- not a function or closure
47
48error[E0518]: attribute should be applied to function or closure
49  --> $DIR/inline-trait-and-foreign-items.rs:30:5
50   |
51LL |     #[inline]
52   |     ^^^^^^^^^
53LL |     static X: u32;
54   |     -------------- not a function or closure
55
56error[E0518]: attribute should be applied to function or closure
57  --> $DIR/inline-trait-and-foreign-items.rs:33:5
58   |
59LL |     #[inline]
60   |     ^^^^^^^^^
61LL |     type T;
62   |     ------- not a function or closure
63
64error: unconstrained opaque type
65  --> $DIR/inline-trait-and-foreign-items.rs:26:14
66   |
67LL |     type U = impl Trait;
68   |              ^^^^^^^^^^
69   |
70   = note: `U` must be used in combination with a concrete type within the same impl
71
72error: aborting due to 6 previous errors; 2 warnings emitted
73
74For more information about this error, try `rustc --explain E0518`.