summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-68295.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/issue-68295.stderr')
-rw-r--r--tests/ui/traits/issue-68295.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-68295.stderr b/tests/ui/traits/issue-68295.stderr
new file mode 100644
index 000000000..cb6e6e076
--- /dev/null
+++ b/tests/ui/traits/issue-68295.stderr
@@ -0,0 +1,17 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-68295.rs:43:5
+ |
+LL | fn crash<R, C>(input: Matrix<R, C, ()>) -> Matrix<R, C, u32>
+ | ----------------- expected `Matrix<R, C, u32>` because of return type
+...
+LL | input.into_owned()
+ | ^^^^^^^^^^^^^^^^^^ expected `u32`, found associated type
+ |
+ = note: expected struct `Matrix<_, _, u32>`
+ found struct `Matrix<_, _, <() as Allocator<R, C>>::Buffer>`
+ = help: consider constraining the associated type `<() as Allocator<R, C>>::Buffer` to `u32`
+ = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.