about summary refs log tree commit diff
path: root/tests/ui/lowering/no-name-for-DefPath-issue-133426.rs
blob: fc3b51b40a545e3f5eda726414de97bbaf0bb727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Test for the crash in #133426, caused by an empty symbol being used for a
//! type name.

#![allow(incomplete_features)]
#![feature(never_patterns)]

fn a(
    _: impl Iterator<
        Item = [(); {
            match *todo!() { ! }; //~ ERROR type `!` cannot be dereferenced
        }],
    >,
) {
}

fn b(_: impl Iterator<Item = { match 0 { ! } }>) {}
//~^ ERROR associated const equality is incomplete
//~| ERROR expected type, found constant

fn main() {}