]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-68295.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / traits / issue-68295.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-68295.rs:43:5
3    |
4 LL | fn crash<R, C>(input: Matrix<R, C, ()>) -> Matrix<R, C, u32>
5    |                                            ----------------- expected `Matrix<R, C, u32>` because of return type
6 ...
7 LL |     input.into_owned()
8    |     ^^^^^^^^^^^^^^^^^^ expected `u32`, found associated type
9    |
10    = note: expected struct `Matrix<_, _, u32>`
11               found struct `Matrix<_, _, <() as Allocator<R, C>>::Buffer>`
12    = help: consider constraining the associated type `<() as Allocator<R, C>>::Buffer` to `u32`
13    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.