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
= note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
48
48
= help: add `#![feature(async_closure)]` to the crate attributes to enable
49
49
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50
50
51
51
error[E0658]: use of unstable library feature 'async_closure'
= note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
58
58
= help: add `#![feature(async_closure)]` to the crate attributes to enable
= note: type of `self` must be `Self` or a type that dereferences to it
8
+
= 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
+
1
10
error[E0038]: the trait `Foo` cannot be made into an object
= note: type of `self` must be `Self` or a type that dereferences to it
23
-
= 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`)
24
-
25
25
error: aborting due to 2 previous errors
26
26
27
27
Some errors have detailed explanations: E0038, E0307.
Copy file name to clipboardExpand all lines: tests/ui/async-await/issue-66312.stderr
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,3 @@
1
-
error[E0308]: mismatched types
2
-
--> $DIR/issue-66312.rs:9:8
3
-
|
4
-
LL | if x.is_some() {
5
-
| ^^^^^^^^^^^ expected `bool`, found `()`
6
-
7
1
error[E0307]: invalid `self` parameter type: `T`
8
2
--> $DIR/issue-66312.rs:4:22
9
3
|
@@ -13,6 +7,12 @@ LL | fn is_some(self: T);
13
7
= note: type of `self` must be `Self` or a type that dereferences to it
14
8
= 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`)
15
9
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/opaque_types.stderr
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
error: `Foo` is forbidden as the type of a const generic parameter
2
+
--> $DIR/opaque_types.rs:7:17
3
+
|
4
+
LL | fn foo<const C: Foo>() {}
5
+
| ^^^
6
+
|
7
+
= note: the only supported types are integers, `bool`, and `char`
8
+
1
9
error: item does not constrain `Foo::{opaque#0}`, but has it in its signature
2
10
--> $DIR/opaque_types.rs:7:4
3
11
|
@@ -68,14 +76,6 @@ LL | type Foo = impl Sized;
68
76
| ^^^^^^^^^^
69
77
= 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
70
78
71
-
error: `Foo` is forbidden as the type of a const generic parameter
72
-
--> $DIR/opaque_types.rs:7:17
73
-
|
74
-
LL | fn foo<const C: Foo>() {}
75
-
| ^^^
76
-
|
77
-
= note: the only supported types are integers, `bool`, and `char`
78
-
79
79
error[E0391]: cycle detected when computing type of opaque `Foo::{opaque#0}`
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
14
-
= help: specify the types explicitly
15
-
note: in edition 2024, the requirement `!: opaque::Trait` will fail
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
48
+
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
49
+
= help: specify the types explicitly
50
+
note: in edition 2024, the requirement `!: opaque::Trait` will fail
0 commit comments