]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-8171-default-method-self-inherit-builtin-trait.rs
1 // check-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 /*
6
7 #8171 Self is not recognised as implementing kinds in default method implementations
8
9 */
10
11 fn require_send<T: Send>(_: T){}
12
13 trait TragicallySelfIsNotSend: Send + Sized {
14     fn x(self) {
15         require_send(self);
16     }
17 }
18
19 pub fn main(){}