Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
fully-qualified-type
/
fully-qualified-type-name2.rs
blob: f26d3be66303df6d7d75ab40daec9574c54da28b [
file
] [
log
] [
blame
]
// Test that we use fully-qualified type names in error messages.
mod
x
{
pub
enum
Foo
{
}
}
mod
y
{
pub
enum
Foo
{
}
}
fn
bar
(
x
:
x
::
Foo
)
->
y
::
Foo
{
return
x
;
//~^ ERROR mismatched types
//~| expected `y::Foo`, found `x::Foo`
}
fn
main
()
{
}