diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs b/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs deleted file mode 100644 index 3ce721618..000000000 --- a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Variation on `borrowck-use-uninitialized-in-cast` in which we do a -// trait cast from an uninitialized source. Issue #20791. - -trait Foo { fn dummy(&self) { } } -impl Foo for i32 { } - -fn main() { - let x: &i32; - let y = x as *const dyn Foo; //~ ERROR [E0381] -} |