]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-55825-const-fn.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / nll / issue-55825-const-fn.rs
1 // Regression test for issue #55825
2 // Tests that we don't emit a spurious warning in NLL mode
3
4 // check-pass
5
6 const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
7
8 fn main() { }