1 // revisions: stock gated stocknc gatednc
3 #![cfg_attr(any(gated, gatednc), feature(const_trait_impl))]
5 // aux-build: cross-crate.rs
6 extern crate cross_crate;
10 fn non_const_context() {
15 const fn const_context() {
16 #[cfg(any(stocknc, gatednc))]
18 //[stocknc]~^ ERROR: the trait bound
19 //[gatednc]~^^ ERROR: the trait bound
21 //[stock]~^ ERROR: cannot call