summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/async-trait-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/async-trait-fn.rs')
-rw-r--r--src/test/ui/async-await/async-trait-fn.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/async-await/async-trait-fn.rs b/src/test/ui/async-await/async-trait-fn.rs
index e2062e827..0ea685986 100644
--- a/src/test/ui/async-await/async-trait-fn.rs
+++ b/src/test/ui/async-await/async-trait-fn.rs
@@ -1,8 +1,11 @@
// 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() {}
}