diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2019-10-02 18:45:44 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2019-10-02 18:45:44 -0400 |
| commit | 19c07cc2b2f2dc1f30acce0f75b270c3dead6d70 (patch) | |
| tree | 39eecc7e45b1d9670070ef0d0f2876911a3fbed3 | |
| parent | 4a49351e8b3552eb28251ede3511d0ff53e650d7 (diff) | |
| download | rust-19c07cc2b2f2dc1f30acce0f75b270c3dead6d70.tar.gz rust-19c07cc2b2f2dc1f30acce0f75b270c3dead6d70.zip | |
fix example (le sigh)
| -rw-r--r-- | src/test/ui/async-await/return-ty-unsize-coercion.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/async-await/return-ty-unsize-coercion.rs b/src/test/ui/async-await/return-ty-unsize-coercion.rs index b9884416930..93832ef7edd 100644 --- a/src/test/ui/async-await/return-ty-unsize-coercion.rs +++ b/src/test/ui/async-await/return-ty-unsize-coercion.rs @@ -33,11 +33,11 @@ fn unsize_slice_coercion() { // Unsizing coercion from `&[&str; 1]` to `&[&str]` fn unsize_slice_str_coercion() { - fn func() -> &'static [&'static str] { + fn sync_example() -> &'static [&'static str] { &["hi"] } - async fn func() -> &'static [&'static str] { + async fn async_example() -> &'static [&'static str] { &["hi"] } } |
