Debian Codegraph @

gcc/testsuite/rust/compile/redef_error6.rs

raw
1 struct Foo<T>(T, usize);
2
3 impl Foo<i32> {
4 fn test() -> i32 {
5 123
6 }
7
8 fn test(self) -> i32 { // { dg-error "defined multiple times" }
9 self.0
10 }
11 }
12
13 fn main() {}