2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-12 09:29:52 -06:00
|
|
|
trait Bound {
|
|
|
|
fn dummy(&self) { }
|
|
|
|
}
|
2015-01-14 15:43:17 -06:00
|
|
|
|
|
|
|
trait Trait {
|
2017-06-24 21:29:10 -05: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 15:43:17 -06: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() {}
|