]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-assoc-type.rs
Rollup merge of #101171 - thomcc:fix-winfs-ub, r=ChrisDenton
[rust.git] / src / test / ui / typeck / typeck-default-trait-impl-assoc-type.rs
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>() {
11     is_send::<T::AssocType>(); //~ ERROR E0277
12 }
13
14 fn is_send<T:Send>() {
15 }
16
17 fn main() { }