]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck-default-trait-impl-assoc-type.fixed
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / typeck / typeck-default-trait-impl-assoc-type.fixed
1 // run-rustfix
2 // Test that we do not consider associated types to be sendable without
3 // some applicable trait bound (and we don't ICE).
4 #![allow(dead_code)]
5
6 trait Trait {
7     type AssocType;
8     fn dummy(&self) { }
9 }
10 fn bar<T:Trait+Send>() where <T as Trait>::AssocType: Send {
11     is_send::<T::AssocType>(); //~ ERROR E0277
12 }
13
14 fn is_send<T:Send>() {
15 }
16
17 fn main() { }