Make error messages great again (and fix clippy and add test)
This commit is contained in:
parent
191d3b76db
commit
898c76cd82
10 changed files with 72 additions and 46 deletions
12
src/test/ui/rfc-2632-const-trait-impl/nested-closure.rs
Normal file
12
src/test/ui/rfc-2632-const-trait-impl/nested-closure.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
|
||||
#![feature(const_trait_impl, once_cell)]
|
||||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
static EXTERN_FLAGS: LazyLock<String> = LazyLock::new(|| {
|
||||
let x = || String::new();
|
||||
x()
|
||||
});
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue