mirror of https://github.com/rust-lang/rust
11 lines
341 B
Rust
11 lines
341 B
Rust
// Test that we use fully-qualified type names in error messages.
|
|
|
|
fn main() {
|
|
let x: //~ NOTE expected due to the type of this binding
|
|
Option<usize>; //~ NOTE expected due to this type
|
|
x = 5;
|
|
//~^ ERROR mismatched types
|
|
//~| NOTE expected enum `Option<usize>`
|
|
//~| NOTE expected `Option<usize>`, found integer
|
|
}
|