fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
661 B24 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-84128.rs:13:13
3   |
4LL |         Foo(())
5   |         --- ^^ expected integer, found `()`
6   |         |
7   |         arguments to this struct are incorrect
8   |
9help: the type constructed contains `()` due to the type of the argument passed
10  --> $DIR/issue-84128.rs:13:9
11   |
12LL |         Foo(())
13   |         ^^^^--^
14   |             |
15   |             this argument influences the type of `Foo`
16note: tuple struct defined here
17  --> $DIR/issue-84128.rs:5:8
18   |
19LL | struct Foo<T>(T);
20   |        ^^^
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0308`.