about summary refs log tree commit diff
path: root/tests/ui/track-diagnostics/track2.rs
blob: 591b84f330b7d95add8a5e106a3df21bffc4d631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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
}