]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/show_module.stderr
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / mismatched_types / show_module.stderr
1 error[E0308]: mismatched types
2   --> $DIR/show_module.rs:14:5
3    |
4 LL | fn foo() -> Foo {
5    |             --- expected `baz::Foo` because of return type
6 LL |     meh::Foo
7    |     ^^^^^^^^ expected struct `baz::Foo`, found struct `meh::Foo`
8    |
9    = note: struct `meh::Foo` and struct `baz::Foo` have similar names, but are actually distinct types
10 note: struct `meh::Foo` is defined in module `crate::meh` of the current crate
11   --> $DIR/show_module.rs:8:5
12    |
13 LL |     pub struct Foo;
14    |     ^^^^^^^^^^^^^^
15 note: struct `baz::Foo` is defined in module `crate::blah::baz` of the current crate
16   --> $DIR/show_module.rs:3:9
17    |
18 LL |         pub struct Foo;
19    |         ^^^^^^^^^^^^^^
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0308`.