]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18446-2.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-18446-2.rs
1 // check-pass
2 #![allow(dead_code)]
3 // Test that methods in trait impls should override default methods.
4
5 trait T {
6     fn foo(&self) -> i32 { 0 }
7 }
8
9 impl<'a> dyn T + 'a {
10     fn foo(&self) -> i32 { 1 }
11 }
12
13 fn main() {}