diff options
Diffstat (limited to 'tests/ui/generics/generic-extern.rs')
-rw-r--r-- | tests/ui/generics/generic-extern.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/generics/generic-extern.rs b/tests/ui/generics/generic-extern.rs new file mode 100644 index 000000000..3690d6fd0 --- /dev/null +++ b/tests/ui/generics/generic-extern.rs @@ -0,0 +1,7 @@ +extern "C" { + fn foo<T>(); //~ ERROR foreign items may not have type parameters +} + +fn main() { + foo::<i32>(); +} |