Files
rust/tests/ui/unstable-feature-bound/unstable_inherent_method.stderr

19 lines
686 B
Plaintext
Raw Normal View History

error: `#[unstable_feature_bound]` attribute cannot be used on required trait methods
2025-07-14 13:30:36 +00:00
--> $DIR/unstable_inherent_method.rs:11:5
|
LL | #[unstable_feature_bound(foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `#[unstable_feature_bound]` can be applied to functions, trait impl blocks, and traits
2025-07-14 13:30:36 +00:00
error: `#[unstable_feature_bound]` attribute cannot be used on trait methods in impl blocks
2025-07-14 13:30:36 +00:00
--> $DIR/unstable_inherent_method.rs:18:5
|
LL | #[unstable_feature_bound(foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `#[unstable_feature_bound]` can be applied to functions, trait impl blocks, and traits
2025-07-14 13:30:36 +00:00
error: aborting due to 2 previous errors