diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-17545.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-17545.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/borrowck/issue-17545.rs b/src/test/ui/borrowck/issue-17545.rs deleted file mode 100644 index ced6fff31..000000000 --- a/src/test/ui/borrowck/issue-17545.rs +++ /dev/null @@ -1,10 +0,0 @@ -#![feature(fn_traits)] - -fn id<T>(x: T) -> T { x } - -pub fn foo<'a, F: Fn(&'a ())>(bar: F) { - bar.call(( - &id(()), //~ ERROR temporary value dropped while borrowed - )); -} -fn main() {} |