1 2 3 4 5 6 7
use std::fmt::Debug; fn foo(x: impl Debug) -> String { x //~ ERROR mismatched types } fn main() { }