rust/tests/ui/typeck/point-at-type-param-in-path...

7 lines
130 B
Rust

fn foo<T: std::fmt::Display>() {}
fn main() {
let x = foo::<()>;
//~^ ERROR `()` doesn't implement `std::fmt::Display`
}