diff options
Diffstat (limited to 'src/test/ui/error-codes/E0271.rs')
-rw-r--r-- | src/test/ui/error-codes/E0271.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/error-codes/E0271.rs b/src/test/ui/error-codes/E0271.rs deleted file mode 100644 index f27190754..000000000 --- a/src/test/ui/error-codes/E0271.rs +++ /dev/null @@ -1,11 +0,0 @@ -trait Trait { type AssociatedType; } - -fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { - println!("in foo"); -} - -impl Trait for i8 { type AssociatedType = &'static str; } - -fn main() { - foo(3_i8); //~ ERROR E0271 -} |