]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cross-crate/const-cross-crate-extern.rs
Rollup merge of #93966 - rkuhn:patch-1, r=tmandry
[rust.git] / src / test / ui / cross-crate / 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 }