]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/parser/fn-header-semantic-fail.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / parser / fn-header-semantic-fail.rs
index cf5d3dab4aadad1f5b3e73b5f4b98db565906d25..71f18a27e7c119db1872c187ea215c14ec05507b 100644 (file)
@@ -11,7 +11,6 @@ fn main() {
     extern "C" fn ff4() {} // OK.
     const async unsafe extern "C" fn ff5() {}
     //~^ ERROR functions cannot be both `const` and `async`
-    //~| ERROR cycle detected
 
     trait X {
         async fn ft1(); //~ ERROR functions in traits cannot be declared `async`
@@ -34,7 +33,6 @@ fn main() {
         //~^ ERROR functions in traits cannot be declared `async`
         //~| ERROR functions in traits cannot be declared const
         //~| ERROR functions cannot be both `const` and `async`
-        //~| ERROR cycle detected
     }
 
     impl Y {
@@ -44,7 +42,6 @@ fn main() {
         extern "C" fn fi4() {} // OK.
         const async unsafe extern "C" fn fi5() {}
         //~^ ERROR functions cannot be both `const` and `async`
-        //~| ERROR cycle detected
     }
 
     extern "C" {