diff options
Diffstat (limited to 'src/test/compile-fail/trait-alias.rs')
| -rw-r--r-- | src/test/compile-fail/trait-alias.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/trait-alias.rs b/src/test/compile-fail/trait-alias.rs index 5d4112e4a5e..12cfd4ce0e5 100644 --- a/src/test/compile-fail/trait-alias.rs +++ b/src/test/compile-fail/trait-alias.rs @@ -8,12 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// gate-test-trait_alias + trait Alias1<T> = Default where T: Clone; // ok - //~^ERROR trait aliases are not yet implemented + //~^ERROR trait aliases are not yet fully implemented trait Alias2<T: Clone = ()> = Default; //~^ERROR type parameters on the left side of a trait alias cannot be bounded //~^^ERROR type parameters on the left side of a trait alias cannot have defaults - //~^^^ERROR trait aliases are not yet implemented + //~^^^ERROR trait aliases are not yet fully implemented impl Alias1 { //~ERROR expected type, found trait alias fn foo() {} |
