Skip to content

Commit b64d041

Browse files
committed
Move never_type test under issue266
1 parent b683da8 commit b64d041

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

tests/test.rs

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -252,25 +252,6 @@ pub async fn test_unimplemented() {
252252
let _ = <() as Trait>::f;
253253
}
254254

255-
#[cfg(async_trait_nightly_testing)]
256-
pub async fn test_divering_function() {
257-
#[async_trait]
258-
pub trait Trait {
259-
async fn f() -> !;
260-
}
261-
262-
#[async_trait]
263-
impl Trait for () {
264-
async fn f() -> ! {
265-
loop {
266-
std::thread::sleep(std::time::Duration::from_millis(1));
267-
}
268-
}
269-
}
270-
271-
let _ = <() as Trait>::f;
272-
}
273-
274255
// https://github.com/dtolnay/async-trait/issues/1
275256
pub mod issue1 {
276257
use async_trait::async_trait;
@@ -1641,3 +1622,23 @@ pub mod issue238 {
16411622
async fn f() {}
16421623
}
16431624
}
1625+
1626+
// https://github.com/dtolnay/async-trait/issues/266
1627+
#[cfg(async_trait_nightly_testing)]
1628+
pub mod issue266 {
1629+
use async_trait::async_trait;
1630+
1631+
#[async_trait]
1632+
pub trait Trait {
1633+
async fn f() -> !;
1634+
}
1635+
1636+
#[async_trait]
1637+
impl Trait for () {
1638+
async fn f() -> ! {
1639+
loop {
1640+
std::thread::sleep(std::time::Duration::from_millis(1));
1641+
}
1642+
}
1643+
}
1644+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy