about summary refs log tree commit diff
path: root/tests/ui/methods/untrimmed-path-type.rs
blob: e6e3ad79185d14e38d54d1d03a574ec8bab2f3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Ensures that the path of the `Error` type is not trimmed
// to make it clear which Error type is meant.

fn main() {
   meow().unknown(); //~ ERROR no method named `unknown` found
   //~^ NOTE method not found in `Result<(), std::io::Error>`
}

fn meow() -> Result<(), std::io::Error> {
    Ok(())
}