Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
error-codes
/
E0746.rs
blob: bf5ba8fff562a81ef091917b380e301f5255cac2 [
file
] [
log
] [
blame
]
// run-rustfix
#![
allow
(
dead_code
)]
struct
Struct
;
trait
Trait
{}
impl
Trait
for
Struct
{}
impl
Trait
for
u32
{}
fn
foo
()
->
dyn
Trait
{
Struct
}
//~^ ERROR E0746
fn
bar
()
->
dyn
Trait
{
//~ ERROR E0746
if
true
{
return
0
;
}
42
}
fn
main
()
{}