]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-send-param.rs
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[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() { }