fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.2 KiB56 linesraw
1error: imports cannot refer to type parameters
2  --> $DIR/future-proofing-locals.rs:14:9
3   |
4LL |     use T as _;
5   |         ^
6
7error: imports cannot refer to type parameters
8  --> $DIR/future-proofing-locals.rs:15:9
9   |
10LL |     use T::U;
11   |         ^
12
13error: imports cannot refer to type parameters
14  --> $DIR/future-proofing-locals.rs:16:9
15   |
16LL |     use T::*;
17   |         ^
18
19error: imports cannot refer to type parameters
20  --> $DIR/future-proofing-locals.rs:20:9
21   |
22LL |     use T;
23   |         ^
24
25error: imports cannot refer to local variables
26  --> $DIR/future-proofing-locals.rs:26:9
27   |
28LL |     use x as _;
29   |         ^
30
31error: imports cannot refer to local variables
32  --> $DIR/future-proofing-locals.rs:32:9
33   |
34LL |     use x;
35   |         ^
36
37error: imports cannot refer to local variables
38  --> $DIR/future-proofing-locals.rs:38:17
39   |
40LL |             use x;
41   |                 ^
42
43error: imports cannot refer to type parameters
44  --> $DIR/future-proofing-locals.rs:46:10
45   |
46LL |     use {T as _, x};
47   |          ^
48
49error: imports cannot refer to local variables
50  --> $DIR/future-proofing-locals.rs:46:18
51   |
52LL |     use {T as _, x};
53   |                  ^
54
55error: aborting due to 9 previous errors
56