]>
Commit | Line | Data |
---|---|---|
62682a34 | 1 | // Test use of const fn from another crate without a feature gate. |
85aaf69f | 2 | |
dc9dc135 | 3 | // check-pass |
62682a34 SL |
4 | // aux-build:const_fn_lib.rs |
5 | ||
6 | extern crate const_fn_lib; | |
7 | ||
8 | use const_fn_lib::foo; | |
9 | ||
a1dfa0c6 | 10 | fn main() { |
62682a34 SL |
11 | let x = foo(); // use outside a constant is ok |
12 | } |