diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-11493.fixed')
-rw-r--r-- | src/test/ui/borrowck/issue-11493.fixed | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/borrowck/issue-11493.fixed b/src/test/ui/borrowck/issue-11493.fixed deleted file mode 100644 index 139bd9a07..000000000 --- a/src/test/ui/borrowck/issue-11493.fixed +++ /dev/null @@ -1,9 +0,0 @@ -// run-rustfix -fn id<T>(x: T) -> T { x } - -fn main() { - let x = Some(3); - let binding = id(5); - let y = x.as_ref().unwrap_or(&binding); //~ ERROR - let _ = &y; -} |