about summary refs log tree commit diff
path: root/tests/ui/suggestions/suggest-variants.stderr
blob: 50286a96875940dd6da5f59d24db84601b0c3024 (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
70
71
72
73
74
75
76
77
78
79
error[E0599]: no variant named `Squareee` found for enum `Shape`
  --> $DIR/suggest-variants.rs:12:41
   |
LL | enum Shape {
   | ---------- variant `Squareee` not found here
...
LL |     println!("My shape is {:?}", Shape::Squareee { size: 5});
   |                                         ^^^^^^^^
   |
help: there is a variant with a similar name
   |
LL -     println!("My shape is {:?}", Shape::Squareee { size: 5});
LL +     println!("My shape is {:?}", Shape::Square { size: 5});
   |

error[E0599]: no variant named `Circl` found for enum `Shape`
  --> $DIR/suggest-variants.rs:13:41
   |
LL | enum Shape {
   | ---------- variant `Circl` not found here
...
LL |     println!("My shape is {:?}", Shape::Circl { size: 5});
   |                                         ^^^^^
   |
help: there is a variant with a similar name
   |
LL |     println!("My shape is {:?}", Shape::Circle { size: 5});
   |                                              +

error[E0599]: no variant named `Rombus` found for enum `Shape`
  --> $DIR/suggest-variants.rs:14:41
   |
LL | enum Shape {
   | ---------- variant `Rombus` not found here
...
LL |     println!("My shape is {:?}", Shape::Rombus{ size: 5});
   |                                         ^^^^^^ variant not found in `Shape`

error[E0599]: no variant or associated item named `Squareee` found for enum `Shape` in the current scope
  --> $DIR/suggest-variants.rs:15:12
   |
LL | enum Shape {
   | ---------- variant or associated item `Squareee` not found for this enum
...
LL |     Shape::Squareee;
   |            ^^^^^^^^ variant or associated item not found in `Shape`
   |
help: there is a variant with a similar name
   |
LL -     Shape::Squareee;
LL +     Shape::Square { size: /* value */ };
   |

error[E0599]: no variant or associated item named `Circl` found for enum `Shape` in the current scope
  --> $DIR/suggest-variants.rs:16:12
   |
LL | enum Shape {
   | ---------- variant or associated item `Circl` not found for this enum
...
LL |     Shape::Circl;
   |            ^^^^^ variant or associated item not found in `Shape`
   |
help: there is a variant with a similar name
   |
LL |     Shape::Circle { radius: /* value */ };
   |                 +++++++++++++++++++++++++

error[E0599]: no variant or associated item named `Rombus` found for enum `Shape` in the current scope
  --> $DIR/suggest-variants.rs:17:12
   |
LL | enum Shape {
   | ---------- variant or associated item `Rombus` not found for this enum
...
LL |     Shape::Rombus;
   |            ^^^^^^ variant or associated item not found in `Shape`

error: aborting due to 6 previous errors

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