You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/async-await/issue-66312.stderr
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
error[E0308]: mismatched types
2
+
--> $DIR/issue-66312.rs:9:8
3
+
|
4
+
LL | if x.is_some() {
5
+
| ^^^^^^^^^^^ expected `bool`, found `()`
6
+
1
7
error[E0307]: invalid `self` parameter type: T
2
8
--> $DIR/issue-66312.rs:4:22
3
9
|
@@ -7,12 +13,6 @@ LL | fn is_some(self: T);
7
13
= note: type of `self` must be `Self` or a type that dereferences to it
8
14
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
9
15
10
-
error[E0308]: mismatched types
11
-
--> $DIR/issue-66312.rs:9:8
12
-
|
13
-
LL | if x.is_some() {
14
-
| ^^^^^^^^^^^ expected `bool`, found `()`
15
-
16
16
error: aborting due to 2 previous errors
17
17
18
18
Some errors have detailed explanations: E0307, E0308.
Copy file name to clipboardExpand all lines: tests/ui/const-generics/issues/issue-83765.stderr
+40-2
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,44 @@ LL | trait TensorDimension {
17
17
| ^^^^^^^^^^^^^^^^^^^^^
18
18
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
19
19
20
-
error: aborting due to 1 previous error
20
+
error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM`
21
+
--> $DIR/issue-83765.rs:5:5
22
+
|
23
+
LL | const DIM: usize;
24
+
| ^^^^^^^^^^^^^^^^
25
+
|
26
+
note: ...which requires computing candidate for `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>`...
27
+
--> $DIR/issue-83765.rs:4:1
28
+
|
29
+
LL | trait TensorDimension {
30
+
| ^^^^^^^^^^^^^^^^^^^^^
31
+
= note: ...which again requires resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM`, completing the cycle
32
+
note: cycle used when checking that `<impl at $DIR/issue-83765.rs:56:1: 56:97>` is well-formed
0 commit comments