Skip to content

Commit bb103b6

Browse files
committed
Add missing testcase
1 parent b3dfc9f commit bb103b6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
struct Foo<A, B>(A, B);
2+
3+
impl<T> Foo<i32, T> {
4+
fn test(a: T) -> T { // { dg-error "duplicate definitions with name test" }
5+
a
6+
}
7+
}
8+
9+
impl Foo<i32, f32> {
10+
fn test() -> f32 { // { dg-error "duplicate definitions with name test" }
11+
123f32
12+
}
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)