]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/point-at-type-param-in-path-expr.rs
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / typeck / point-at-type-param-in-path-expr.rs
1 fn foo<T: std::fmt::Display>() {}
2
3 fn main() {
4     let x = foo::<()>;
5     //~^ ERROR `()` doesn't implement `std::fmt::Display`
6 }