]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-cross-crate-extern.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-cross-crate-extern.rs
1 // run-pass
2 // aux-build:cci_const.rs
3 #![allow(non_upper_case_globals)]
4
5 extern crate cci_const;
6 use cci_const::bar;
7 static foo: extern "C" fn() = bar;
8
9 pub fn main() {
10     assert!(foo == bar);
11 }