Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
12
third-party/vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.stderr
vendored
Normal file
12
third-party/vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.stderr
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
error[E0597]: `x` does not live long enough
|
||||
--> tests/ui-nightly/transmute-ref-illegal-lifetime.rs:14:52
|
||||
|
|
||||
12 | let x = 0u64;
|
||||
| - binding `x` declared here
|
||||
13 | // It is illegal to increase the lifetime scope.
|
||||
14 | let _: &'static u64 = zerocopy::transmute_ref!(&x);
|
||||
| ------------ ^^ borrowed value does not live long enough
|
||||
| |
|
||||
| type annotation requires that `x` is borrowed for `'static`
|
||||
15 | }
|
||||
| - `x` dropped here while still borrowed
|
||||
Loading…
Add table
Add a link
Reference in a new issue