mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 10:48:36 +00:00
15 lines
266 B
Rust
15 lines
266 B
Rust
|
// This test requires a feature gated const fn and will stop working in the future.
|
||
|
|
||
|
#![feature(const_btree_new)]
|
||
|
|
||
|
use std::collections::BTreeMap;
|
||
|
|
||
|
struct Foo(BTreeMap<i32, i32>);
|
||
|
impl Foo {
|
||
|
fn new() -> Self {
|
||
|
Self(BTreeMap::new())
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|