]> git.lizzy.rs Git - rust.git/blob - src/test/ui/track-diagnostics/track2.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / track-diagnostics / track2.rs
1 // compile-flags: -Z track-diagnostics
2 // error-pattern: created at
3
4 // Normalize the emitted location so this doesn't need
5 // updating everytime someone adds or removes a line.
6 // normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
7
8 fn main() {
9     let _moved @ _from = String::from("foo");
10 }