1 // aux-build: staged-api.rs
2 extern crate staged_api;
6 // Const stability has no impact on usage in non-const contexts.
7 fn non_const_context() {
11 const fn stable_const_context() {
13 //~^ ERROR cannot call non-const fn `<staged_api::Unstable as staged_api::MyTrait>::func` in constant functions