rust/src/test/ui/error-codes/E0044.rs

10 lines
258 B
Rust
Raw Normal View History

extern {
fn sqrt<T>(f: T) -> T;
//~^ ERROR foreign items may not have type parameters [E0044]
//~| HELP use specialization instead of type parameters by replacing them with concrete types
2018-03-14 20:10:25 -05:00
//~| NOTE can't have type parameters
}
2016-05-19 07:00:43 -05:00
fn main() {
}