]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal-mismatched-type.rs
Rollup merge of #98441 - calebzulawski:simd_as, r=oli-obk
[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() { }