diff options
Diffstat (limited to 'tests/ui/stability-attribute/generics-default-stability-where.rs')
| -rw-r--r-- | tests/ui/stability-attribute/generics-default-stability-where.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/stability-attribute/generics-default-stability-where.rs b/tests/ui/stability-attribute/generics-default-stability-where.rs index 4afbca26264..142de12e152 100644 --- a/tests/ui/stability-attribute/generics-default-stability-where.rs +++ b/tests/ui/stability-attribute/generics-default-stability-where.rs @@ -5,6 +5,7 @@ extern crate unstable_generic_param; use unstable_generic_param::*; impl<T> Trait3<usize> for T where T: Trait2<usize> { //~ ERROR use of unstable library feature 'unstable_default' +//~^ ERROR `T` must be used as the type parameter for some local type fn foo() -> usize { T::foo() } } |
