mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
9 lines
213 B
Rust
9 lines
213 B
Rust
extern "C" {
|
|
fn sqrt<T>(f: T) -> T;
|
|
//~^ ERROR foreign items may not have type parameters [E0044]
|
|
//~| HELP replace the type parameters with concrete types
|
|
//~| NOTE can't have type parameters
|
|
}
|
|
|
|
fn main() {}
|