2022-10-24 23:19:48 +02:00
|
|
|
//@ compile-flags: -Z track-diagnostics
|
2025-06-02 23:40:01 -06:00
|
|
|
//@ dont-require-annotations: NOTE
|
2022-10-24 23:19:48 +02:00
|
|
|
|
|
|
|
|
// Normalize the emitted location so this doesn't need
|
|
|
|
|
// updating everytime someone adds or removes a line.
|
2024-12-25 22:12:17 +11:00
|
|
|
//@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC"
|
2022-10-24 23:19:48 +02:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let _unimported = Blah { field: u8 };
|
2025-03-29 02:41:32 +03:00
|
|
|
//~^ ERROR cannot find struct, variant or union type `Blah` in this scope
|
2025-06-02 23:40:01 -06:00
|
|
|
//~| NOTE created at
|
2025-03-29 02:41:32 +03:00
|
|
|
//~| ERROR expected value, found builtin type `u8`
|
2025-06-02 23:40:01 -06:00
|
|
|
//~| NOTE created at
|
2022-10-24 23:19:48 +02:00
|
|
|
}
|