mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
7 lines
133 B
Rust
7 lines
133 B
Rust
//@ edition: 2024
|
|
|
|
fn main() {
|
|
let _ = { String::new().as_str() }.len();
|
|
//~^ ERROR temporary value dropped while borrowed
|
|
}
|