Skip to content

Commit

Permalink
fix example (le sigh)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Oct 2, 2019
1 parent 4a49351 commit 19c07cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/async-await/return-ty-unsize-coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
Expand Down

0 comments on commit 19c07cc

Please sign in to comment.