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.8 KiB61 linesraw
1error: missing angle brackets in associated item path
2  --> $DIR/bad-assoc-expr.rs:3:5
3   |
4LL |     [i32; 4]::clone(&a);
5   |     ^^^^^^^^^^^^^^^ help: try: `<[i32; 4]>::clone`
6
7error: missing angle brackets in associated item path
8  --> $DIR/bad-assoc-expr.rs:6:5
9   |
10LL |     [i32]::as_ref(&a);
11   |     ^^^^^^^^^^^^^ help: try: `<[i32]>::as_ref`
12
13error: missing angle brackets in associated item path
14  --> $DIR/bad-assoc-expr.rs:9:5
15   |
16LL |     (u8)::clone(&0);
17   |     ^^^^^^^^^^^ help: try: `<(u8)>::clone`
18
19error: missing angle brackets in associated item path
20  --> $DIR/bad-assoc-expr.rs:12:5
21   |
22LL |     (u8, u8)::clone(&(0, 0));
23   |     ^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::clone`
24
25error: missing angle brackets in associated item path
26  --> $DIR/bad-assoc-expr.rs:15:6
27   |
28LL |     &(u8)::clone(&0);
29   |      ^^^^^^^^^^^ help: try: `<(u8)>::clone`
30
31error: missing angle brackets in associated item path
32  --> $DIR/bad-assoc-expr.rs:18:10
33   |
34LL |     10 + (u8)::clone(&0);
35   |          ^^^^^^^^^^^ help: try: `<(u8)>::clone`
36
37error: missing angle brackets in associated item path
38  --> $DIR/bad-assoc-expr.rs:32:13
39   |
40LL |     let _ = ty!()::clone(&0);
41   |             ^^^^^^^^^^^^ help: try: `<ty!()>::clone`
42
43error: missing angle brackets in associated item path
44  --> $DIR/bad-assoc-expr.rs:34:5
45   |
46LL |     ty!()::clone(&0);
47   |     ^^^^^^^^^^^^ help: try: `<ty!()>::clone`
48
49error: missing angle brackets in associated item path
50  --> $DIR/bad-assoc-expr.rs:23:19
51   |
52LL |     ($ty: ty) => ($ty::clone(&0))
53   |                   ^^^^^^^^^^ help: try: `<$ty>::clone`
54...
55LL |     expr!(u8);
56   |     ---------- in this macro invocation
57   |
58   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
59
60error: aborting due to 9 previous errors
61