Skip to content

Commit 24ac777

Browse files
committed
Add test for rust-lang#132013
1 parent 45089ec commit 24ac777

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//@ only-linux
2+
//@ compile-flags: --error-format=human --color=always
3+
//@ error-pattern: the trait bound
4+
5+
trait Foo<T>: Bar<T> {}
6+
7+
trait Bar<T> {}
8+
9+
struct Struct;
10+
11+
impl<T, K> Foo<K> for T where T: Bar<K>
12+
{}
13+
14+
impl<'a> Bar<()> for Struct {}
15+
16+
fn foo() -> impl Foo<i32> {
17+
Struct
18+
}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)