]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/inconsistent-lifetime-mismatch.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[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() {}