summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0044.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0044.stderr')
-rw-r--r--tests/ui/error-codes/E0044.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0044.stderr b/tests/ui/error-codes/E0044.stderr
new file mode 100644
index 000000000..e889c167b
--- /dev/null
+++ b/tests/ui/error-codes/E0044.stderr
@@ -0,0 +1,11 @@
+error[E0044]: foreign items may not have type parameters
+ --> $DIR/E0044.rs:2:5
+ |
+LL | fn sqrt<T>(f: T) -> 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`.