rust/tests/ui/borrowck/borrowck-static-item-in-fn.rs
2024-02-16 20:02:50 +00:00

9 lines
158 B
Rust

//@ run-pass
#![allow(dead_code)]
// Regression test for issue #7740
//@ pretty-expanded FIXME #23616
pub fn main() {
static A: &'static char = &'A';
}