File tree 2 files changed +4
-13
lines changed
rustc_error_codes/src/error_codes
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -354,17 +354,6 @@ pub struct InclusiveRangeWithNoEnd {
354
354
pub span : Span ,
355
355
}
356
356
357
- #[ derive( Diagnostic , Clone , Copy ) ]
358
- #[ diag( ast_lowering_trait_fn_async, code = "E0706" ) ]
359
- #[ note]
360
- #[ note( ast_lowering_note2) ]
361
- pub struct TraitFnAsync {
362
- #[ primary_span]
363
- pub fn_span : Span ,
364
- #[ label]
365
- pub span : Span ,
366
- }
367
-
368
357
#[ derive( Diagnostic ) ]
369
358
pub enum BadReturnTypeNotation {
370
359
#[ diag( ast_lowering_bad_return_type_notation_inputs) ]
Original file line number Diff line number Diff line change
1
+ #### Note: this error code is no longer emitted by the compiler.
2
+
1
3
` async fn ` s are not yet supported in traits in Rust.
2
4
3
5
Erroneous code example:
4
6
5
- ``` compile_fail ,edition2018
7
+ ``` ignore ,edition2018
6
8
trait T {
7
9
// Neither case is currently supported.
8
10
async fn foo() {}
@@ -13,7 +15,7 @@ trait T {
13
15
` async fn ` s return an ` impl Future ` , making the following two examples
14
16
equivalent:
15
17
16
- ``` edition2018, ignore (example-of-desugaring-equivalence)
18
+ ``` ignore,edition2018 (example-of-desugaring-equivalence)
17
19
async fn foo() -> User {
18
20
unimplemented!()
19
21
}
You can’t perform that action at this time.
0 commit comments