rust/tests/ui/borrowck/borrowck-static-item-in-fn.rs
2023-01-11 09:32:08 +00:00

10 lines
156 B
Rust

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