]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-84128.stderr
09c44d261af0c449f373aeef4850a883f9d5761c
[rust.git] / src / test / ui / closures / issue-84128.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-84128.rs:13:13
3    |
4 LL |         Foo(())
5    |         --- ^^ expected integer, found `()`
6    |         |
7    |         arguments to this struct are incorrect
8    |
9 note: return type inferred to be `{integer}` here
10   --> $DIR/issue-84128.rs:10:20
11    |
12 LL |             return Foo(0);
13    |                    ^^^^^^
14 note: tuple struct defined here
15   --> $DIR/issue-84128.rs:5:8
16    |
17 LL | struct Foo<T>(T);
18    |        ^^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.