2017-11-15 12:28:35 -06:00
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn foo(x: impl Debug, y: impl Debug) -> String {
|
|
|
|
let mut a = x;
|
2017-11-20 06:13:27 -06:00
|
|
|
a = y; //~ ERROR mismatched
|
2017-11-15 12:28:35 -06:00
|
|
|
format!("{:?}", a)
|
|
|
|
}
|
|
|
|
|
2021-02-13 13:41:02 -06:00
|
|
|
trait S<T> {}
|
|
|
|
|
|
|
|
fn much_universe<T: S<impl Debug>, U: IntoIterator<Item = impl Iterator<Item = impl Clone>>>(
|
|
|
|
_: impl Debug + Clone,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|