]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/bad-method-typaram-kind.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / traits / bad-method-typaram-kind.rs
1 fn foo<T:'static>() {
2     1.bar::<T>(); //~ ERROR `T` cannot be sent between threads safely
3 }
4
5 trait Bar {
6     fn bar<T:Send>(&self);
7 }
8
9 impl Bar for usize {
10     fn bar<T:Send>(&self) {
11     }
12 }
13
14 fn main() {}