mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
62ba3e70a1
The previous output was unintuitive to users.
15 lines
308 B
Rust
15 lines
308 B
Rust
// Test that we use fully-qualified type names in error messages.
|
|
|
|
use std::option::Option;
|
|
|
|
fn bar(x: usize) -> Option<usize> {
|
|
return x;
|
|
//~^ ERROR mismatched types
|
|
//~| expected enum `Option<usize>`
|
|
//~| found type `usize`
|
|
//~| expected `Option<usize>`, found `usize`
|
|
}
|
|
|
|
fn main() {
|
|
}
|