mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
fix example (le sigh)
This commit is contained in:
@@ -33,11 +33,11 @@ async fn async_example() -> Box<[u32]> {
|
||||
|
||||
// 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"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user