mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
221 B
Rust
16 lines
221 B
Rust
//@ known-bug: #128232
|
|
|
|
#![feature(generic_const_exprs, unsized_const_params)]
|
|
|
|
fn function() {}
|
|
|
|
struct Wrapper<const F: fn()>;
|
|
|
|
impl Wrapper<{ bar() }> {
|
|
fn call() {}
|
|
}
|
|
|
|
fn main() {
|
|
Wrapper::<function>::call;
|
|
}
|