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