]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-32323.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-32323.stderr
CommitLineData
8faf50e0 1error[E0308]: mismatched types
0731742a 2 --> $DIR/issue-32323.rs:5:30
8faf50e0
XL
3 |
4LL | pub fn f<'a, T: Tr<'a>>() -> <T as Tr<'a>>::Out {}
60c5eb7d 5 | - ^^^^^^^^^^^^^^^^^^ expected associated type, found `()`
0731742a 6 | |
416331ca 7 | implicitly returns `()` as its body has no tail or `return` expression
8faf50e0 8 |
60c5eb7d
XL
9 = note: expected associated type `<T as Tr<'a>>::Out`
10 found unit type `()`
f9f354fc
XL
11help: consider constraining the associated type `<T as Tr<'a>>::Out` to `()`
12 |
13LL | pub fn f<'a, T: Tr<'a, Out = ()>>() -> <T as Tr<'a>>::Out {}
94222f64 14 | ++++++++++
8faf50e0
XL
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.