2022-03-16 04:49:54 -05:00
|
|
|
// This tests that `const_trait` default methods can
|
2021-12-16 07:38:54 -06:00
|
|
|
// be called from a const context when used across crates.
|
|
|
|
//
|
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
|
|
|
// aux-build: cross-crate.rs
|
|
|
|
extern crate cross_crate;
|
|
|
|
|
|
|
|
use cross_crate::*;
|
|
|
|
|
|
|
|
const _: () = {
|
|
|
|
Const.func();
|
|
|
|
Const.defaulted_func();
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {}
|