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