]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/closure-with-wrong-borrows.rs
Make `output_filenames` a real query
[rust.git] / tests / ui / type / closure-with-wrong-borrows.rs
1 struct S<'a>(&'a str);
2
3 fn f(inner: fn(&str, &S)) {
4 }
5
6 #[allow(unreachable_code)]
7 fn main() {
8     let inner: fn(_, _) = unimplemented!();
9     f(inner); //~ ERROR mismatched types
10 }