about summary refs log tree commit diff
path: root/tests/ui/unstable-feature-bound/unstable_inherent_method.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-12 20:37:55 +1000
committerGitHub <noreply@github.com>2025-08-12 20:37:55 +1000
commit42af95b18e6ad480d72d6bffe71ff9063fc9b6de (patch)
tree814c2e9659e06966d8b7c24f0e5abe4e51f37544 /tests/ui/unstable-feature-bound/unstable_inherent_method.rs
parent769d32b117ee007b8872b7de3752ac7a6a64c05d (diff)
parentbcf87e4172416b96e24be998e18d81a8af183356 (diff)
downloadrust-42af95b18e6ad480d72d6bffe71ff9063fc9b6de.tar.gz
rust-42af95b18e6ad480d72d6bffe71ff9063fc9b6de.zip
Rollup merge of #145251 - tiif:support_trait, r=BoxyUwU
Support using #[unstable_feature_bound] on trait

This is needed to unblock https://github.com/rust-lang/rust/pull/145095

r? ```````@BoxyUwU```````
Diffstat (limited to 'tests/ui/unstable-feature-bound/unstable_inherent_method.rs')
-rw-r--r--tests/ui/unstable-feature-bound/unstable_inherent_method.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/unstable-feature-bound/unstable_inherent_method.rs b/tests/ui/unstable-feature-bound/unstable_inherent_method.rs
index 5f3095430a8..0d6e4ebb408 100644
--- a/tests/ui/unstable-feature-bound/unstable_inherent_method.rs
+++ b/tests/ui/unstable-feature-bound/unstable_inherent_method.rs
@@ -9,14 +9,14 @@
 pub trait Trait {
     #[unstable(feature = "feat", issue = "none" )]
     #[unstable_feature_bound(foo)]
-    //~^ ERROR: attribute should be applied to `impl` or free function outside of any `impl` or trait
+    //~^ ERROR: attribute should be applied to `impl`, trait or free function
     fn foo();
 }
 
 #[stable(feature = "a", since = "1.1.1" )]
 impl Trait for u8 {
     #[unstable_feature_bound(foo)]
-    //~^ ERROR: attribute should be applied to `impl` or free function outside of any `impl` or trait
+    //~^ ERROR: attribute should be applied to `impl`, trait or free function
     fn foo() {}
 }