diff options
Diffstat (limited to 'src/test/ui/mir/mir_call_with_associated_type.rs')
-rw-r--r-- | src/test/ui/mir/mir_call_with_associated_type.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/mir/mir_call_with_associated_type.rs b/src/test/ui/mir/mir_call_with_associated_type.rs deleted file mode 100644 index 7103533e1..000000000 --- a/src/test/ui/mir/mir_call_with_associated_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// run-pass -trait Trait { - type Type; -} - -impl<'a> Trait for &'a () { - type Type = u32; -} - -fn foo<'a>(t: <&'a () as Trait>::Type) -> <&'a () as Trait>::Type { - t -} - -fn main() { - assert_eq!(foo(4), 4); -} |