]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22629.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-22629.rs
1 // run-pass
2 #![allow(unused_imports)]
3 // Test transitive analysis for associated types. Collected types
4 // should be normalized and new obligations generated.
5
6 // pretty-expanded FIXME #23616
7
8 use std::borrow::{ToOwned, Cow};
9
10 fn assert_send<T: Send>(_: T) {}
11
12 fn main() {
13     assert_send(Cow::Borrowed("foo"));
14 }