mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
15 lines
168 B
Rust
15 lines
168 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
fn foo(_: &[&str]) {}
|
|
|
|
fn bad(a: &str, b: &str) {
|
|
foo(&[a, b]);
|
|
}
|
|
|
|
fn good(a: &str, b: &str) {
|
|
foo(&[a, b]);
|
|
}
|
|
|
|
fn main() {}
|