]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-send-param.rs
Rollup merge of #85997 - jyn514:rustdoc-diff, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / typeck-default-trait-impl-send-param.rs
1 // Test that we do not consider parameter types to be sendable without
2 // an explicit trait bound.
3
4 fn foo<T>() {
5     is_send::<T>() //~ ERROR E0277
6 }
7
8 fn is_send<T:Send>() {
9 }
10
11 fn main() { }