diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-init-in-fru.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-init-in-fru.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-init-in-fru.rs b/src/test/ui/borrowck/borrowck-init-in-fru.rs deleted file mode 100644 index c07957ab1..000000000 --- a/src/test/ui/borrowck/borrowck-init-in-fru.rs +++ /dev/null @@ -1,12 +0,0 @@ -#[derive(Clone)] -struct Point { - x: isize, - y: isize, -} - -fn main() { - let mut origin: Point; - origin = Point { x: 10, ..origin }; - //~^ ERROR E0381 - origin.clone(); -} |