☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
generics8.rs
☽
☼
gcc/testsuite/rust/compile/generics8.rs
code
plain
raw
1
#[lang = "sized"]
2
pub trait Sized {}
3
4
struct Foo<A, B>(A, B);
5
6
impl<T> Foo<i32, T> {
7
fn test(a: T) -> T {
8
a
9
}
10
}
11
12
impl Foo<i32, f32> {
13
fn test() -> f32 { // { dg-error "duplicate definitions with name .test." }
14
123f32
15
}
16
}
17
18
fn main() {}