fork/rust

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

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

master
3.0 KiB105 linesraw
1error: missing angle brackets in associated item path
2  --> $DIR/bad-assoc-expr.rs:3:5
3   |
4LL |     [i32; 4]::clone(&a);
5   |     ^^^^^^^^
6   |
7help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
8   |
9LL |     <[i32; 4]>::clone(&a);
10   |     +        +
11
12error: missing angle brackets in associated item path
13  --> $DIR/bad-assoc-expr.rs:6:5
14   |
15LL |     [i32]::as_ref(&a);
16   |     ^^^^^
17   |
18help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
19   |
20LL |     <[i32]>::as_ref(&a);
21   |     +     +
22
23error: missing angle brackets in associated item path
24  --> $DIR/bad-assoc-expr.rs:9:5
25   |
26LL |     (u8)::clone(&0);
27   |     ^^^^
28   |
29help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
30   |
31LL |     <(u8)>::clone(&0);
32   |     +    +
33
34error: missing angle brackets in associated item path
35  --> $DIR/bad-assoc-expr.rs:12:5
36   |
37LL |     (u8, u8)::clone(&(0, 0));
38   |     ^^^^^^^^
39   |
40help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
41   |
42LL |     <(u8, u8)>::clone(&(0, 0));
43   |     +        +
44
45error: missing angle brackets in associated item path
46  --> $DIR/bad-assoc-expr.rs:15:6
47   |
48LL |     &(u8)::clone(&0);
49   |      ^^^^
50   |
51help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
52   |
53LL |     &<(u8)>::clone(&0);
54   |      +    +
55
56error: missing angle brackets in associated item path
57  --> $DIR/bad-assoc-expr.rs:18:10
58   |
59LL |     10 + (u8)::clone(&0);
60   |          ^^^^
61   |
62help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
63   |
64LL |     10 + <(u8)>::clone(&0);
65   |          +    +
66
67error: missing angle brackets in associated item path
68  --> $DIR/bad-assoc-expr.rs:32:13
69   |
70LL |     let _ = ty!()::clone(&0);
71   |             ^^^^^
72   |
73help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
74   |
75LL |     let _ = <ty!()>::clone(&0);
76   |             +     +
77
78error: missing angle brackets in associated item path
79  --> $DIR/bad-assoc-expr.rs:34:5
80   |
81LL |     ty!()::clone(&0);
82   |     ^^^^^
83   |
84help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
85   |
86LL |     <ty!()>::clone(&0);
87   |     +     +
88
89error: missing angle brackets in associated item path
90  --> $DIR/bad-assoc-expr.rs:23:19
91   |
92LL |     ($ty: ty) => ($ty::clone(&0))
93   |                   ^^^
94...
95LL |     expr!(u8);
96   |     --------- in this macro invocation
97   |
98   = note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
99help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
100   |
101LL |     ($ty: ty) => (<$ty>::clone(&0))
102   |                   +   +
103
104error: aborting due to 9 previous errors
105