]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal-mismatched-type.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[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() { }