summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-field-through-deref.stderr
blob: cc9fe2044c91e66d83968810a90f36c7ac4094b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
error[E0609]: no field `longname` on type `Arc<S>`
  --> $DIR/suggest-field-through-deref.rs:10:15
   |
LL |     let _ = x.longname;
   |               ^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
LL |     let _ = x.long_name;
   |               ~~~~~~~~~

error[E0609]: no field `longname` on type `S`
  --> $DIR/suggest-field-through-deref.rs:12:15
   |
LL |     let _ = y.longname;
   |               ^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
LL |     let _ = y.long_name;
   |               ~~~~~~~~~

error[E0609]: no field `longname` on type `Option<Arc<S>>`
  --> $DIR/suggest-field-through-deref.rs:14:15
   |
LL |     let _ = a.longname;
   |               ^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
LL |     let _ = a.unwrap().long_name;
   |               ~~~~~~~~~~~~~~~~~~

error[E0609]: no field `long_name` on type `Option<S>`
  --> $DIR/suggest-field-through-deref.rs:16:15
   |
LL |     let _ = b.long_name;
   |               ^^^^^^^^^ unknown field
   |
help: one of the expressions' fields has a field of the same name
   |
LL |     let _ = b.unwrap().long_name;
   |               +++++++++

error[E0609]: no field `longname` on type `Result<Arc<S>, ()>`
  --> $DIR/suggest-field-through-deref.rs:18:15
   |
LL |     let _ = c.longname;
   |               ^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
LL |     let _ = c.unwrap().long_name;
   |               ~~~~~~~~~~~~~~~~~~

error[E0609]: no field `long_name` on type `Result<S, ()>`
  --> $DIR/suggest-field-through-deref.rs:20:15
   |
LL |     let _ = d.long_name;
   |               ^^^^^^^^^ unknown field
   |
help: one of the expressions' fields has a field of the same name
   |
LL |     let _ = d.unwrap().long_name;
   |               +++++++++

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0609`.