]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-send-param.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[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() { }