diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs b/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs deleted file mode 100644 index a355a546d..000000000 --- a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs +++ /dev/null @@ -1,8 +0,0 @@ -// Check that we detect unused values that are cast to other things. -// The problem was specified to casting to `*`, as creating unsafe -// pointers was not being fully checked. Issue #20791. - -fn main() { - let x: &i32; - let y = x as *const i32; //~ ERROR [E0381] -} |