summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr')
-rw-r--r--tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr b/tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr
deleted file mode 100644
index d0a4cd661..000000000
--- a/tests/ui/traits/new-solver/lazy-nested-obligations-2.stderr
+++ /dev/null
@@ -1,39 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/lazy-nested-obligations-2.rs:15:23
- |
-LL | let _: V<i32> = V(f);
- | - ^ types differ
- | |
- | arguments to this struct are incorrect
- |
- = note: expected associated type `<i32 as With>::F`
- found fn item `for<'a> fn(&'a str) {f}`
- = help: consider constraining the associated type `<i32 as With>::F` to `for<'a> fn(&'a str) {f}` or calling a method that returns `<i32 as With>::F`
- = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
-note: tuple struct defined here
- --> $DIR/lazy-nested-obligations-2.rs:16:16
- |
-LL | pub struct V<T: With>(<T as With>::F);
- | ^
-
-error[E0308]: mismatched types
- --> $DIR/lazy-nested-obligations-2.rs:21:30
- |
-LL | let _: E3<i32> = E3::Var(f);
- | ------- ^ types differ
- | |
- | arguments to this enum variant are incorrect
- |
- = note: expected associated type `<i32 as With>::F`
- found fn item `for<'a> fn(&'a str) {f}`
- = help: consider constraining the associated type `<i32 as With>::F` to `for<'a> fn(&'a str) {f}` or calling a method that returns `<i32 as With>::F`
- = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
-note: tuple variant defined here
- --> $DIR/lazy-nested-obligations-2.rs:19:9
- |
-LL | Var(<T as With>::F),
- | ^^^
-
-error: aborting due to 2 previous errors
-
-For more information about this error, try `rustc --explain E0308`.