2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on associated types
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:11:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[inline]` can only be applied to functions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on associated types
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:22:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on associated types
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:25:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on foreign statics
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:30:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[inline]` attribute cannot be used on foreign types
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:33:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
|
| ^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2022-02-14 16:10:22 +00:00
|
|
|
error: unconstrained opaque type
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:26:14
|
|
|
|
|
|
|
|
|
|
|
LL | type U = impl Trait;
|
|
|
|
|
| ^^^^^^^^^^
|
2022-02-14 16:10:22 +00:00
|
|
|
|
|
2022-10-22 03:09:49 +00:00
|
|
|
= note: `U` must be used in combination with a concrete type within the same impl
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
warning: `#[inline]` attribute cannot be used on associated consts
|
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:7: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!
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
|
--> $DIR/inline-trait-and-foreign-items.rs:4:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_attributes)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[inline]` attribute cannot be used on associated consts
|
|
|
|
|
--> $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!
|
|
|
|
|
= help: `#[inline]` can only be applied to functions
|
|
|
|
|
|
2021-07-26 17:01:16 -03:00
|
|
|
error: aborting due to 6 previous errors; 2 warnings emitted
|
|
|
|
|
|