]> git.lizzy.rs Git - rust.git/blob - src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs
Rollup merge of #88093 - Kobzol:rustdoc-wrap-code-in-code-tag, r=GuillaumeGomez
[rust.git] / src / test / ui / builtin-superkinds / builtin-superkinds-typaram-not-send.rs
1 // Basic test for traits inheriting from the builtin kinds.
2
3 trait Foo : Send { }
4
5 impl <T: Sync+'static> Foo for T { }
6 //~^ ERROR `T` cannot be sent between threads safely
7
8 fn main() { }