summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr')
-rw-r--r--tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr b/tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr
new file mode 100644
index 000000000..4be90c702
--- /dev/null
+++ b/tests/ui/traits/next-solver/unevaluated-const-impl-trait-ref.fails.stderr
@@ -0,0 +1,18 @@
+error[E0277]: the trait bound `(): Trait<1>` is not satisfied
+ --> $DIR/unevaluated-const-impl-trait-ref.rs:20:13
+ |
+LL | needs::<1>();
+ | ^ the trait `Trait<1>` is not implemented for `()`
+ |
+ = help: the following other types implement trait `Trait<N>`:
+ <() as Trait<0>>
+ <() as Trait<2>>
+note: required by a bound in `needs`
+ --> $DIR/unevaluated-const-impl-trait-ref.rs:10:38
+ |
+LL | fn needs<const N: usize>() where (): Trait<N> {}
+ | ^^^^^^^^ required by this bound in `needs`
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0277`.