rust/src/test/ui/impl-trait/universal-two-impl-traits.rs

10 lines
162 B
Rust
Raw Normal View History

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