]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-7126.rs
Rollup merge of #86263 - fee1-dead:rustdoc-layout-variants, r=camelid
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-7126.rs
1 // This test requires a feature gated const fn and will stop working in the future.
2
3 #![feature(const_btree_new)]
4
5 use std::collections::BTreeMap;
6
7 struct Foo(BTreeMap<i32, i32>);
8 impl Foo {
9     fn new() -> Self {
10         Self(BTreeMap::new())
11     }
12 }
13
14 fn main() {}