]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/inconsistent-lifetime-mismatch.rs
Auto merge of #104730 - petrochenkov:modchild5, r=cjgillot
[rust.git] / src / test / ui / binding / inconsistent-lifetime-mismatch.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 fn foo(_: &[&str]) {}
6
7 fn bad(a: &str, b: &str) {
8     foo(&[a, b]);
9 }
10
11 fn good(a: &str, b: &str) {
12     foo(&[a, b]);
13 }
14
15 fn main() {}