]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-84128.stderr
Rollup merge of #106752 - sulami:master, r=estebank
[rust.git] / tests / 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 help: the type constructed contains `()` due to the type of the argument passed
10   --> $DIR/issue-84128.rs:13:9
11    |
12 LL |         Foo(())
13    |         ^^^^--^
14    |             |
15    |             this argument influences the type of `Foo`
16 note: tuple struct defined here
17   --> $DIR/issue-84128.rs:5:8
18    |
19 LL | struct Foo<T>(T);
20    |        ^^^
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0308`.