]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.rs
Rollup merge of #103397 - crlf0710:port_dead_code_lint, r=davidtwco
[rust.git] / src / test / ui / suggestions / lifetimes / missing-lifetimes-in-signature-before-const.rs
1 // run-rustfix
2 // https://github.com/rust-lang/rust/issues/95616
3
4 fn buggy_const<const N: usize>(_a: &Option<[u8; N]>, _f: &str) -> &str { //~ERROR [E0106]
5     return "";
6 }
7
8 fn main() {
9     buggy_const(&Some([69,69,69,69,0]), "test");
10 }