Open
Description
The minimized example (playground:
#![feature(min_type_alias_impl_trait)]
type Foo = impl Copy;
enum Wrapper<T> {
First(T),
Second
}
fn produce() -> Wrapper<Foo> {
Wrapper::Second
}
gives what appears to me to be the correct error:
error: could not find defining uses
--> src/lib.rs:3:12
|
3 | type Foo = impl Copy;
| ^^^^^^^^^
but the diagnostics are not very good.
Originally posted by @nikomatsakis in #66426 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo