]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal-mismatched-type.rs
Rollup merge of #95504 - jyn514:library-alias, r=Mark-Simulacrum
[rust.git] / src / test / ui / impl-trait / universal-mismatched-type.rs
1 use std::fmt::Debug;
2
3 fn foo(x: impl Debug) -> String {
4     x //~ ERROR mismatched types
5 }
6
7 fn main() { }