summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22629.rs
blob: 7beeb126ee45c21ff87c758fe0fb9bc358fa4170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(unused_imports)]
// Test transitive analysis for associated types. Collected types
// should be normalized and new obligations generated.

// pretty-expanded FIXME #23616

use std::borrow::{ToOwned, Cow};

fn assert_send<T: Send>(_: T) {}

fn main() {
    assert_send(Cow::Borrowed("foo"));
}