2021-07-26 15:01:16 -05:00
|
|
|
warning: `#[inline]` is ignored on constants
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:7:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
|
2021-07-26 15:01:16 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:4:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:11:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | type T;
|
|
|
|
| ------- not a function or closure
|
|
|
|
|
|
|
|
warning: `#[inline]` is ignored on constants
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:18:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:22:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | type T = Self;
|
|
|
|
| -------------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:25:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | type U = impl Trait;
|
|
|
|
| -------------------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:30:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | static X: u32;
|
|
|
|
| -------------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:33:5
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | type T;
|
|
|
|
| ------- not a function or closure
|
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
error: unconstrained opaque type
|
2021-07-26 15:01:16 -05:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:26:14
|
|
|
|
|
|
|
|
|
LL | type U = impl Trait;
|
|
|
|
| ^^^^^^^^^^
|
2022-02-14 10:10:22 -06:00
|
|
|
|
|
2022-10-21 22:09:49 -05:00
|
|
|
= note: `U` must be used in combination with a concrete type within the same impl
|
2021-07-26 15:01:16 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors; 2 warnings emitted
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0518`.
|