about summary refs log tree commit diff
path: root/src/test/ui/const-generics/impl-trait-with-const-arguments.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/impl-trait-with-const-arguments.stderr')
-rw-r--r--src/test/ui/const-generics/impl-trait-with-const-arguments.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/impl-trait-with-const-arguments.stderr b/src/test/ui/const-generics/impl-trait-with-const-arguments.stderr
new file mode 100644
index 00000000000..6268a564b06
--- /dev/null
+++ b/src/test/ui/const-generics/impl-trait-with-const-arguments.stderr
@@ -0,0 +1,9 @@
+error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
+  --> $DIR/impl-trait-with-const-arguments.rs:18:20
+   |
+LL |     assert_eq!(f::<4usize>(Usizable), 20usize);
+   |                    ^^^^^^ explicit generic argument not allowed
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0632`.