rust/tests/ui/error-codes/E0044.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
213 B
Rust
Raw Normal View History

2020-09-01 16:12:52 -05:00
extern "C" {
fn sqrt<T>(f: T) -> T;
2020-09-01 16:12:52 -05:00
//~^ ERROR foreign items may not have type parameters [E0044]
//~| HELP replace the type parameters with concrete types
//~| NOTE can't have type parameters
}
2016-05-19 07:00:43 -05:00
2020-09-01 16:12:52 -05:00
fn main() {}