mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
13 lines
176 B
Rust
13 lines
176 B
Rust
#![crate_name="issue6919_3"]
|
|
|
|
// part of issue-6919.rs
|
|
|
|
pub struct C<K> where K: FnOnce() {
|
|
pub k: K,
|
|
}
|
|
|
|
fn no_op() { }
|
|
pub const D : C<fn()> = C {
|
|
k: no_op as fn()
|
|
};
|