summaryrefslogtreecommitdiffstats
path: root/tests/ui/fully-qualified-type/fully-qualified-type-name1.rs
blob: bbca22ad2e69d3c63ae3e4cb7becbdf9d3d700cf (plain)
1
2
3
4
5
6
7
8
9
10
// 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
}