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 =
669669    .label =  not a function or static 
670670
671671passes_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 
674674
675675passes_should_be_applied_to_fn = 
676676    attribute should be applied to a function definition 
Original file line number Diff line number Diff line change 99pub  trait  Trait  { 
1010    #[ unstable( feature = "feat" ,  issue = "none"  ) ]  
1111    #[ 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 
1313    fn  foo ( ) ; 
1414} 
1515
1616#[ stable( feature = "a" ,  since = "1.1.1"  ) ]  
1717impl  Trait  for  u8  { 
1818    #[ 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 
2020    fn  foo ( )  { } 
2121} 
2222
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
22  --> $DIR/unstable_inherent_method.rs:11:5
33   |
44LL |     #[unstable_feature_bound(foo)]
55   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66LL |
77LL |     fn foo();
8-    |     --------- not an `impl` or free function
8+    |     --------- not an `impl`, trait  or free function
99
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
1111  --> $DIR/unstable_inherent_method.rs:18:5
1212   |
1313LL |     #[unstable_feature_bound(foo)]
1414   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515LL |
1616LL |     fn foo() {}
17-    |     ----------- not an `impl` or free function
17+    |     ----------- not an `impl`, trait  or free function
1818
1919error: aborting due to 2 previous errors
2020
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments