diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-19127.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-19127.rs b/src/test/ui/issues/issue-19127.rs new file mode 100644 index 000000000..c847ac9e4 --- /dev/null +++ b/src/test/ui/issues/issue-19127.rs @@ -0,0 +1,10 @@ +// run-pass +#![allow(unused_variables)] +// pretty-expanded FIXME #23616 + +fn foo<T, F: FnOnce(T) -> T>(f: F) {} +fn id<'a>(input: &'a u8) -> &'a u8 { input } + +fn main() { + foo(id); +} |