1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//@ check-pass #![allow(dead_code)] /* #8171 Self is not recognised as implementing kinds in default method implementations */ fn require_send<T: Send>(_: T){} trait TragicallySelfIsNotSend: Send + Sized { fn x(self) { require_send(self); } } pub fn main(){}