File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 66/// Aux crate for unstable impl codegen test.
77
88#[ stable( feature = "a" , since = "1.1.1" ) ]
9- trait Trait {
9+ pub trait Trait {
10+ #[ stable( feature = "a" , since = "1.1.1" ) ]
1011 fn method ( & self ) ;
1112}
1213
1314#[ unstable_feature_bound( foo) ]
14- impl Trait for T {
15- // FIXME: this line above failed with cannot find type `T` in this scope
15+ # [ unstable ( feature = "foo" , issue = "none" ) ]
16+ impl < T > Trait for T {
1617 fn method ( & self ) {
1718 println ! ( "hi" ) ;
1819 }
Original file line number Diff line number Diff line change 11//@ aux-build:unstable_impl_codegen_aux1.rs
2-
3- #![ allow( internal_features) ]
4- #![ feature( staged_api) ]
5- #![ feature( impl_stability) ]
6- #![ stable( feature = "a" , since = "1.1.1" ) ]
7- #[ feature( foo) ]
2+ #![ feature( foo) ]
83
94extern crate unstable_impl_codegen_aux1 as aux;
5+ use aux:: Trait ;
106
117/// Upstream crate for unstable impl codegen test
128/// that depends on aux crate in
139/// unstable_impl_codegen_aux1.rs
1410
15- fn foo < T > ( a : T ) {
11+ pub fn foo < T : Trait > ( a : T ) {
1612 a. method ( ) ;
1713}
1814
Original file line number Diff line number Diff line change 11//@ aux-build:unstable_impl_codegen_aux2.rs
2+ //@ check-pass
3+ #![ feature( foo) ]
24
35/// Downstream crate for unstable impl codegen test
46/// that depends on upstream crate in
57/// unstable_impl_codegen_aux2.rs
68
9+ extern crate unstable_impl_codegen_aux2 as aux;
10+ use aux:: foo;
11+
712fn main ( ) {
813 foo ( 1_u8 ) ;
914}
You can’t perform that action at this time.
0 commit comments