blob: bde8bf20f46c5d1942ca195bfd56e9094f0126d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// This tests that `const_trait` default methods can
// 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() {}
|