11error[E0425]: cannot find function, tuple struct or tuple variant `UnresolvedIdent` in this scope
2- --> $DIR/tuple_ctor_erroneous.rs:29 :23
2+ --> $DIR/tuple_ctor_erroneous.rs:30 :23
33 |
44LL | accepts_point::<{ UnresolvedIdent(N, N) }>();
55 | ^^^^^^^^^^^^^^^ not found in this scope
@@ -10,55 +10,55 @@ LL | fn test_errors<const N: usize, const UnresolvedIdent: /* Type */>() {
1010 | +++++++++++++++++++++++++++++++++++
1111
1212error: tuple constructor has 2 arguments but 1 were provided
13- --> $DIR/tuple_ctor_erroneous.rs:23 :23
13+ --> $DIR/tuple_ctor_erroneous.rs:24 :23
1414 |
1515LL | accepts_point::<{ Point(N) }>();
1616 | ^^^^^^^^
1717
1818error: tuple constructor has 2 arguments but 3 were provided
19- --> $DIR/tuple_ctor_erroneous.rs:26 :23
19+ --> $DIR/tuple_ctor_erroneous.rs:27 :23
2020 |
2121LL | accepts_point::<{ Point(N, N, N) }>();
2222 | ^^^^^^^^^^^^^^
2323
2424error: tuple constructor with invalid base path
25- --> $DIR/tuple_ctor_erroneous.rs:29 :23
25+ --> $DIR/tuple_ctor_erroneous.rs:30 :23
2626 |
2727LL | accepts_point::<{ UnresolvedIdent(N, N) }>();
2828 | ^^^^^^^^^^^^^^^^^^^^^
2929
3030error: tuple constructor with invalid base path
31- --> $DIR/tuple_ctor_erroneous.rs:33 :23
31+ --> $DIR/tuple_ctor_erroneous.rs:34 :23
3232 |
3333LL | accepts_point::<{ non_ctor(N, N) }>();
3434 | ^^^^^^^^^^^^^^
3535
3636error: tuple constructor with invalid base path
37- --> $DIR/tuple_ctor_erroneous.rs:36 :23
37+ --> $DIR/tuple_ctor_erroneous.rs:37 :23
3838 |
3939LL | accepts_point::<{ CONST_ITEM(N, N) }>();
4040 | ^^^^^^^^^^^^^^^^
4141
4242error: the constant `Point` is not of type `Point`
43- --> $DIR/tuple_ctor_erroneous.rs:39 :23
43+ --> $DIR/tuple_ctor_erroneous.rs:40 :23
4444 |
4545LL | accepts_point::<{ Point }>();
4646 | ^^^^^ expected `Point`, found struct constructor
4747 |
4848note: required by a const generic parameter in `accepts_point`
49- --> $DIR/tuple_ctor_erroneous.rs:17 :18
49+ --> $DIR/tuple_ctor_erroneous.rs:18 :18
5050 |
5151LL | fn accepts_point<const P: Point>() {}
5252 | ^^^^^^^^^^^^^^ required by this const generic parameter in `accepts_point`
5353
5454error: the constant `MyEnum::<u32>::Variant` is not of type `MyEnum<u32>`
55- --> $DIR/tuple_ctor_erroneous.rs:42 :22
55+ --> $DIR/tuple_ctor_erroneous.rs:43 :22
5656 |
5757LL | accepts_enum::<{ MyEnum::Variant::<u32> }>();
5858 | ^^^^^^^^^^^^^^^^^^^^^^ expected `MyEnum<u32>`, found enum constructor
5959 |
6060note: required by a const generic parameter in `accepts_enum`
61- --> $DIR/tuple_ctor_erroneous.rs:18 :17
61+ --> $DIR/tuple_ctor_erroneous.rs:19 :17
6262 |
6363LL | fn accepts_enum<const E: MyEnum<u32>>() {}
6464 | ^^^^^^^^^^^^^^^^^^^^ required by this const generic parameter in `accepts_enum`
0 commit comments