Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-18446-2.rs
blob: 85422d4d2611a8b0fd98269f556a24eb00033b20 [
file
] [
log
] [
blame
]
// check-pass
#![
allow
(
dead_code
)]
// Test that methods in trait impls should override default methods.
trait
T
{
fn
foo
(&
self
)
->
i32
{
0
}
}
impl
<
'a> dyn T + '
a
{
fn
foo
(&
self
)
->
i32
{
1
}
}
fn
main
()
{}