blob: 689c240128d80e1ac139485ea792e85f478a933a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::fmt::Debug;
fn foo(x: impl Debug, y: impl Debug) -> String {
let mut a = x;
a = y; //~ ERROR mismatched
format!("{:?}", a)
}
trait S<T> {}
fn much_universe<T: S<impl Debug>, U: IntoIterator<Item = impl Iterator<Item = impl Clone>>>(
_: impl Debug + Clone,
) {
}
fn main() {}
|