Skip to content

Commit 19c07cc

Browse files
committed
fix example (le sigh)
1 parent 4a49351 commit 19c07cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/async-await/return-ty-unsize-coercion.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ fn unsize_slice_coercion() {
3333

3434
// Unsizing coercion from `&[&str; 1]` to `&[&str]`
3535
fn unsize_slice_str_coercion() {
36-
fn func() -> &'static [&'static str] {
36+
fn sync_example() -> &'static [&'static str] {
3737
&["hi"]
3838
}
3939

40-
async fn func() -> &'static [&'static str] {
40+
async fn async_example() -> &'static [&'static str] {
4141
&["hi"]
4242
}
4343
}

0 commit comments

Comments
 (0)