Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
issues
/
issue-18446-2.rs
blob: 6b984c13da5d341cdeb0434891acd5c8e0a90fb6 [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be 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
()
{}