]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-55825-const-fn.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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() { }