aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t2462b.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t2462b.check')
-rw-r--r--tests/untried/neg/t2462b.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/t2462b.check b/tests/untried/neg/t2462b.check
new file mode 100644
index 000000000..b3b8007a9
--- /dev/null
+++ b/tests/untried/neg/t2462b.check
@@ -0,0 +1,11 @@
+t2462b.scala:6: warning: Invalid implicitNotFound message for trait Meh in package test:
+The type parameters Too, Elem referenced in the message of the @implicitNotFound annotation are not defined by trait Meh.
+trait Meh[-From, +To]
+ ^
+t2462b.scala:9: warning: Invalid implicitNotFound message for trait Meh2 in package test:
+The type parameter Elem referenced in the message of the @implicitNotFound annotation is not defined by trait Meh2.
+trait Meh2[-From, +To]
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found