about summary refs log tree commit diff
path: root/tests/ui/traits/self-not-send-in-default-method-8171.rs
blob: 59ea62c7690ee1546c1a625e3e63ea59194ba04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// https://github.com/rust-lang/rust/issues/8171
//@ 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(){}