File: failures.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (118 lines) | stat: -rw-r--r-- 3,894 bytes parent folder | download | duplicates (3)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
error: the `#[default]` attribute may only be used on unit enum variants or variants where every field has a default value
  --> $DIR/failures.rs:47:5
   |
LL |     Variant {}
   |     ^^^^^^^
   |
   = help: consider a manual implementation of `Default`

error: generic parameters may not be used in const operations
  --> $DIR/failures.rs:22:23
   |
LL |     bat: i32 = <Qux<{ C }> as T>::K,
   |                       ^ cannot perform const operation using `C`
   |
   = help: const parameters may only be used as standalone arguments, i.e. `C`
   = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions

error: default fields are not supported in tuple structs
  --> $DIR/failures.rs:26:22
   |
LL | pub struct Rak(i32 = 42);
   |                      ^^ default fields are only supported on structs

error: generic `Self` types are currently not permitted in anonymous constants
  --> $DIR/failures.rs:20:14
   |
LL |     bar: S = Self::S,
   |              ^^^^

error[E0277]: the trait bound `S: Default` is not satisfied
  --> $DIR/failures.rs:14:5
   |
LL | #[derive(Debug, Default)]
   |                 ------- in this derive macro expansion
LL | pub struct Bar {
LL |     pub bar: S,
   |     ^^^^^^^^^^ the trait `Default` is not implemented for `S`
   |
   = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `S` with `#[derive(Default)]`
   |
LL + #[derive(Default)]
LL | pub struct S;
   |

error: missing mandatory field `bar`
  --> $DIR/failures.rs:53:21
   |
LL |     let _ = Bar { .. };
   |                     ^

error[E0308]: mismatched types
  --> $DIR/failures.rs:57:17
   |
LL |     let _ = Rak(..);
   |             --- ^^ expected `i32`, found `RangeFull`
   |             |
   |             arguments to this struct are incorrect
   |
note: tuple struct defined here
  --> $DIR/failures.rs:26:12
   |
LL | pub struct Rak(i32 = 42);
   |            ^^^
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
  --> $DIR/failures.rs:57:17
   |
LL |     let _ = Rak(..);
   |                 ^^

error[E0061]: this struct takes 1 argument but 2 arguments were supplied
  --> $DIR/failures.rs:59:13
   |
LL |     let _ = Rak(0, ..);
   |             ^^^    -- unexpected argument #2 of type `RangeFull`
   |
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
  --> $DIR/failures.rs:59:20
   |
LL |     let _ = Rak(0, ..);
   |                    ^^
note: tuple struct defined here
  --> $DIR/failures.rs:26:12
   |
LL | pub struct Rak(i32 = 42);
   |            ^^^
help: remove the extra argument
   |
LL -     let _ = Rak(0, ..);
LL +     let _ = Rak(0);
   |

error[E0061]: this struct takes 1 argument but 2 arguments were supplied
  --> $DIR/failures.rs:61:13
   |
LL |     let _ = Rak(.., 0);
   |             ^^^ -- unexpected argument #1 of type `RangeFull`
   |
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
  --> $DIR/failures.rs:61:17
   |
LL |     let _ = Rak(.., 0);
   |                 ^^
note: tuple struct defined here
  --> $DIR/failures.rs:26:12
   |
LL | pub struct Rak(i32 = 42);
   |            ^^^
help: remove the extra argument
   |
LL -     let _ = Rak(.., 0);
LL +     let _ = Rak(0);
   |

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0061, E0277, E0308.
For more information about an error, try `rustc --explain E0061`.