2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-09-16 08:05:47 -05:00
|
|
|
/*
|
|
|
|
|
|
|
|
#8171 Self is not recognised as implementing kinds in default method implementations
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
fn require_send<T: Send>(_: T){}
|
|
|
|
|
2014-12-19 05:54:09 -06:00
|
|
|
trait TragicallySelfIsNotSend: Send + Sized {
|
2013-09-16 08:05:47 -05:00
|
|
|
fn x(self) {
|
|
|
|
require_send(self);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main(){}
|