mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00

Co-authored-by: Boxy UwU <rust@boxyuwu.dev> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
16 lines
225 B
Rust
16 lines
225 B
Rust
//@ check-pass
|
|
//@ aux-build:xcrate-const-ctor-a.rs
|
|
|
|
#![feature(adt_const_params)]
|
|
|
|
extern crate xcrate_const_ctor_a;
|
|
use xcrate_const_ctor_a::Foo;
|
|
|
|
fn bar<const N: Foo>() {}
|
|
|
|
fn baz() {
|
|
bar::<{ Foo }>();
|
|
}
|
|
|
|
fn main() {}
|