mirror of https://github.com/rust-lang/rust
20 lines
391 B
Rust
20 lines
391 B
Rust
// This tests that `const_trait` default methods can
|
|
// be called from a const context when used across crates.
|
|
//
|
|
//@ check-pass
|
|
//@ compile-flags: -Znext-solver
|
|
#![allow(incomplete_features)]
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
//@ aux-build: cross-crate.rs
|
|
extern crate cross_crate;
|
|
|
|
use cross_crate::*;
|
|
|
|
const _: () = {
|
|
Const.func();
|
|
Const.defaulted_func();
|
|
};
|
|
|
|
fn main() {}
|