1 // Check that a trait with by-value self is considered object-safe.
5 #![allow(trivial_casts)]
16 // Legal because of the where clause:
17 fn baz(self: Self) where Self : Sized;
20 fn make_bar<T:Bar>(t: &T) -> &Bar {
24 fn make_bar_explicit<T:Bar>(t: &T) -> &Bar {
28 fn make_baz<T:Baz>(t: &T) -> &Baz {
32 fn make_baz_explicit<T:Baz>(t: &T) -> &Baz {
36 fn make_quux<T:Quux>(t: &T) -> &Quux {
40 fn make_quux_explicit<T:Quux>(t: &T) -> &Quux {