about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-7126.rs
blob: f0c23c7e852d35f2955a13e74069201571186e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass
// This test requires a feature gated const fn and will stop working in the future.

#![feature(const_btree_len)]

use std::collections::BTreeMap;

struct Foo(usize);
impl Foo {
    fn new() -> Self {
        Self(BTreeMap::len(&BTreeMap::<u8, u8>::new()))
    }
}

fn main() {}