]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/async-trait-fn.rs
Auto merge of #103217 - mejrs:track, r=eholk
[rust.git] / src / test / ui / async-await / async-trait-fn.rs
index 0ea685986db4057dcbf376b0913d06428de24a71..e2062e82725c0507fad934ec9f6720dfab28ea71 100644 (file)
@@ -1,11 +1,8 @@
 // edition:2018
 trait T {
     async fn foo() {} //~ ERROR functions in traits cannot be declared `async`
-    //~^ ERROR mismatched types
     async fn bar(&self) {} //~ ERROR functions in traits cannot be declared `async`
-    //~^ ERROR mismatched types
     async fn baz() { //~ ERROR functions in traits cannot be declared `async`
-        //~^ ERROR mismatched types
         // Nested item must not ICE.
         fn a() {}
     }