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