2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-12-22 20:15:43 -08:00
|
|
|
fn foo(_: &[&str]) {}
|
|
|
|
|
|
|
|
fn bad(a: &str, b: &str) {
|
|
|
|
foo(&[a, b]);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn good(a: &str, b: &str) {
|
2015-02-01 21:53:25 -05:00
|
|
|
foo(&[a, b]);
|
2014-12-22 20:15:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|