summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-21837.rs
blob: 213119bd21c438148c358b7a7fb6f91535b537d8 (plain)
1
2
3
4
5
6
7
8
9
10
pub trait Bound {}
pub struct Foo<T: Bound>(T);

pub trait Trait1 {}
impl<T: Bound> Trait1 for Foo<T> {}

pub trait Trait2 {}
impl<T> Trait2 for Foo<T> {} //~ ERROR the trait bound `T: Bound` is not satisfied

fn main() {}