diff options
Diffstat (limited to 'src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs')
| -rw-r--r-- | src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs b/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs deleted file mode 100644 index 97fa9ef914f..00000000000 --- a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn foo(x:Box<dyn Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) { - y.push(z); - //~^ ERROR lifetime may not live long enough - //~| ERROR cannot borrow -} - -fn main() { } |
