rust/src/test/ui/impl-trait/universal-two-impl-traits.rs
2018-12-25 21:08:33 -07:00

10 lines
162 B
Rust

use std::fmt::Debug;
fn foo(x: impl Debug, y: impl Debug) -> String {
let mut a = x;
a = y; //~ ERROR mismatched
format!("{:?}", a)
}
fn main() { }