1 error[E0308]: mismatched types
2 --> $DIR/issue-86100-tuple-paren-comma.rs:9:22
4 LL | let _x: (i32,) = (5);
5 | ------ ^^^ expected tuple, found integer
9 = note: expected tuple `(i32,)`
10 found type `{integer}`
11 help: use a trailing comma to create a tuple with one element
13 LL | let _x: (i32,) = (5,);
16 error[E0308]: mismatched types
17 --> $DIR/issue-86100-tuple-paren-comma.rs:13:9
20 | ^^^^^^^^^ expected tuple, found enum `Option`
22 = note: expected tuple `(_,)`
23 found enum `Option<{integer}>`
24 help: use a trailing comma to create a tuple with one element
29 error[E0308]: mismatched types
30 --> $DIR/issue-86100-tuple-paren-comma.rs:17:22
32 LL | let _s = S { _s: ("abc".to_string()) };
33 | ^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `String`
35 = note: expected tuple `(String,)`
37 help: use a trailing comma to create a tuple with one element
39 LL | let _s = S { _s: ("abc".to_string(),) };
42 error[E0308]: mismatched types
43 --> $DIR/issue-86100-tuple-paren-comma.rs:23:22
45 LL | let _x: (i32,) = (t);
46 | ------ ^^^ expected a tuple with 1 element, found one with 2 elements
48 | expected due to this
50 = note: expected tuple `(i32,)`
51 found tuple `({integer}, {integer})`
53 error: aborting due to 4 previous errors
55 For more information about this error, try `rustc --explain E0308`.