]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/structural-match.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / structural-match.rs
CommitLineData
29967ef6 1#![feature(const_impl_trait, type_alias_impl_trait)]
f9f354fc
XL
2
3type Foo = impl Send;
4
5// This is not structural-match
6struct A;
7
8const fn value() -> Foo {
9 A
10}
11const VALUE: Foo = value();
12
13fn test() {
14 match todo!() {
15 VALUE => (),
1b1a35ee 16 //~^ `impl Send` cannot be used in patterns
f9f354fc
XL
17 _ => (),
18 }
19}
20
1b1a35ee 21fn main() {}