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