Skip to content
Permalink
Browse files

fix example (le sigh)

  • Loading branch information...
nikomatsakis committed Oct 2, 2019
1 parent 4a49351 commit 19c07cc2b2f2dc1f30acce0f75b270c3dead6d70
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"]
}
}

0 comments on commit 19c07cc

Please sign in to comment.
You can’t perform that action at this time.