rust/tests/ui/lifetimes/tail-expr-in-nested-expr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
171 B
Rust
Raw Normal View History

//@ edition: 2024
//@ compile-flags: -Zunstable-options
fn main() {
let _ = { String::new().as_str() }.len();
//~^ ERROR temporary value dropped while borrowed
}