We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96bce7 commit 4a49351Copy full SHA for 4a49351
src/test/ui/async-await/return-ty-unsize-coercion.rs
@@ -31,4 +31,15 @@ fn unsize_slice_coercion() {
31
}
32
33
34
+// Unsizing coercion from `&[&str; 1]` to `&[&str]`
35
+fn unsize_slice_str_coercion() {
36
+ fn func() -> &'static [&'static str] {
37
+ &["hi"]
38
+ }
39
+
40
+ async fn func() -> &'static [&'static str] {
41
42
43
+}
44
45
fn main() {}
0 commit comments