File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
tests/ui/unstable-feature-bound Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -669,8 +669,8 @@ passes_rustc_std_internal_symbol =
669
669
.label = not a function or static
670
670
671
671
passes_rustc_unstable_feature_bound =
672
- attribute should be applied to `impl` or free function outside of any `impl` or trait
673
- .label = not an `impl` or free function
672
+ attribute should be applied to `impl`, trait or free function
673
+ .label = not an `impl`, trait or free function
674
674
675
675
passes_should_be_applied_to_fn =
676
676
attribute should be applied to a function definition
Original file line number Diff line number Diff line change 9
9
pub trait Trait {
10
10
#[ unstable( feature = "feat" , issue = "none" ) ]
11
11
#[ unstable_feature_bound( foo) ]
12
- //~^ ERROR: attribute should be applied to `impl` or free function outside of any `impl` or trait
12
+ //~^ ERROR: attribute should be applied to `impl`, trait or free function
13
13
fn foo ( ) ;
14
14
}
15
15
16
16
#[ stable( feature = "a" , since = "1.1.1" ) ]
17
17
impl Trait for u8 {
18
18
#[ unstable_feature_bound( foo) ]
19
- //~^ ERROR: attribute should be applied to `impl` or free function outside of any `impl` or trait
19
+ //~^ ERROR: attribute should be applied to `impl`, trait or free function
20
20
fn foo ( ) { }
21
21
}
22
22
Original file line number Diff line number Diff line change 1
- error: attribute should be applied to `impl` or free function outside of any `impl` or trait
1
+ error: attribute should be applied to `impl`, trait or free function
2
2
--> $DIR/unstable_inherent_method.rs:11:5
3
3
|
4
4
LL | #[unstable_feature_bound(foo)]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
LL |
7
7
LL | fn foo();
8
- | --------- not an `impl` or free function
8
+ | --------- not an `impl`, trait or free function
9
9
10
- error: attribute should be applied to `impl` or free function outside of any `impl` or trait
10
+ error: attribute should be applied to `impl`, trait or free function
11
11
--> $DIR/unstable_inherent_method.rs:18:5
12
12
|
13
13
LL | #[unstable_feature_bound(foo)]
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
15
LL |
16
16
LL | fn foo() {}
17
- | ----------- not an `impl` or free function
17
+ | ----------- not an `impl`, trait or free function
18
18
19
19
error: aborting due to 2 previous errors
20
20
You can’t perform that action at this time.
0 commit comments