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 | arguments to this function are incorrect
24 = note: expected tuple `(_,)`
25 found enum `Option<{integer}>`
26 note: function defined here
27 --> $DIR/issue-86100-tuple-paren-comma.rs:5:4
29 LL | fn foo<T>(_t: (T,)) {}
31 help: use a trailing comma to create a tuple with one element
36 error[E0308]: mismatched types
37 --> $DIR/issue-86100-tuple-paren-comma.rs:17:22
39 LL | let _s = S { _s: ("abc".to_string()) };
40 | ^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `String`
42 = note: expected tuple `(String,)`
44 help: use a trailing comma to create a tuple with one element
46 LL | let _s = S { _s: ("abc".to_string(),) };
49 error[E0308]: mismatched types
50 --> $DIR/issue-86100-tuple-paren-comma.rs:23:22
52 LL | let _x: (i32,) = (t);
53 | ------ ^^^ expected a tuple with 1 element, found one with 2 elements
55 | expected due to this
57 = note: expected tuple `(i32,)`
58 found tuple `({integer}, {integer})`
60 error: aborting due to 4 previous errors
62 For more information about this error, try `rustc --explain E0308`.