]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-assoc-type.rs
Auto merge of #56951 - oli-obk:auto_toolstate_issue, r=kennytm
[rust.git] / src / test / ui / typeck / typeck-default-trait-impl-assoc-type.rs
1 // Test that we do not consider associated types to be sendable without
2 // some applicable trait bound (and we don't ICE).
3
4 trait Trait {
5     type AssocType;
6     fn dummy(&self) { }
7 }
8 fn bar<T:Trait+Send>() {
9     is_send::<T::AssocType>(); //~ ERROR E0277
10 }
11
12 fn is_send<T:Send>() {
13 }
14
15 fn main() { }