1 // Check that we correctly prevent users from making trait objects
2 // form traits that make use of `Self` in an argument or return
3 // position, unless `where Self : Sized` is present..
6 fn bar(&self, x: &Self);
10 fn bar(&self) -> Self;
14 fn get(&self, s: &Self) -> Self where Self : Sized;
17 fn make_bar<T:Bar>(t: &T) -> &Bar {
22 fn make_baz<T:Baz>(t: &T) -> &Baz {
27 fn make_quux<T:Quux>(t: &T) -> &Quux {
31 fn make_quux_explicit<T:Quux>(t: &T) -> &Quux {