mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00
13 lines
356 B
Rust
13 lines
356 B
Rust
//@ compile-flags: -Z track-diagnostics
|
|
//@ dont-require-annotations: NOTE
|
|
|
|
// Normalize the emitted location so this doesn't need
|
|
// updating everytime someone adds or removes a line.
|
|
//@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC"
|
|
|
|
fn main() {
|
|
let _moved @ _from = String::from("foo");
|
|
//~^ ERROR use of moved value
|
|
//~| NOTE created at
|
|
}
|