diff options
Diffstat (limited to 'src/test/ui/mismatched_types/normalize-fn-sig.rs')
-rw-r--r-- | src/test/ui/mismatched_types/normalize-fn-sig.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/mismatched_types/normalize-fn-sig.rs b/src/test/ui/mismatched_types/normalize-fn-sig.rs deleted file mode 100644 index 1a2093c44..000000000 --- a/src/test/ui/mismatched_types/normalize-fn-sig.rs +++ /dev/null @@ -1,16 +0,0 @@ -trait Foo { - type Bar; -} - -impl<T> Foo for T { - type Bar = i32; -} - -fn foo<T>(_: <T as Foo>::Bar, _: &'static <T as Foo>::Bar) {} - -fn needs_i32_ref_fn(_: fn(&'static i32, i32)) {} - -fn main() { - needs_i32_ref_fn(foo::<()>); - //~^ ERROR mismatched types -} |