diff options
Diffstat (limited to 'tests/ui/generics/generic-extern.stderr')
-rw-r--r-- | tests/ui/generics/generic-extern.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/generics/generic-extern.stderr b/tests/ui/generics/generic-extern.stderr new file mode 100644 index 000000000..c90215b61 --- /dev/null +++ b/tests/ui/generics/generic-extern.stderr @@ -0,0 +1,11 @@ +error[E0044]: foreign items may not have type parameters + --> $DIR/generic-extern.rs:2:5 + | +LL | fn foo<T>(); + | ^^^^^^^^^^^^ can't have type parameters + | + = help: replace the type parameters with concrete types like `u32` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0044`. |