summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/typeck-default-trait-impl-send-param.rs
blob: 7948cd101ffa93653b412a5381bda9fbaef3477d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that we do not consider parameter types to be sendable without
// an explicit trait bound.

fn foo<T>() {
    is_send::<T>() //~ ERROR E0277
}

fn is_send<T:Send>() {
}

fn main() { }