2024-02-07 10:42:01 +08:00
|
|
|
//@ check-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-12 10:29:52 -05:00
|
|
|
trait Bound {
|
|
|
|
fn dummy(&self) { }
|
|
|
|
}
|
2015-01-14 13:43:17 -08:00
|
|
|
|
|
|
|
trait Trait {
|
2017-06-25 05:29:10 +03:00
|
|
|
fn a<T>(&self, _: T) where T: Bound;
|
|
|
|
fn b<T>(&self, _: T) where T: Bound;
|
|
|
|
fn c<T: Bound>(&self, _: T);
|
|
|
|
fn d<T: Bound>(&self, _: T);
|
2015-01-14 13:43:17 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait for bool {
|
|
|
|
fn a<T: Bound>(&self, _: T) {}
|
|
|
|
fn b<T>(&self, _: T) where T: Bound {}
|
|
|
|
fn c<T: Bound>(&self, _: T) {}
|
|
|
|
fn d<T>(&self, _: T) where T: Bound {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|