File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,7 @@ fn transform_block(
321321 #( #stmts) *
322322 } ;
323323
324+ #[ allow( unreachable_code) ]
324325 __ret
325326 } )
326327 ) ;
Original file line number Diff line number Diff line change @@ -216,7 +216,6 @@ pub async fn test_internal_items() {
216216
217217pub async fn test_unimplemented ( ) {
218218 #[ async_trait]
219- #[ allow( unreachable_code) ]
220219 pub trait Trait {
221220 async fn f ( ) {
222221 unimplemented ! ( )
Original file line number Diff line number Diff line change 1+ #![ deny( warnings) ]
2+
3+ use async_trait:: async_trait;
4+
5+ #[ async_trait]
6+ pub trait Trait {
7+ async fn f ( ) {
8+ unimplemented ! ( )
9+ }
10+ }
11+
12+ #[ async_trait]
13+ pub trait TraitFoo {
14+ async fn f ( ) {
15+ let y = unimplemented ! ( ) ;
16+ let z = y;
17+ }
18+ }
19+
20+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments