2021-08-06 14:20:59 +01:00
|
|
|
// aux-build:generics_of_parent_impl_trait.rs
|
2021-08-27 18:04:57 +02:00
|
|
|
#![feature(generic_const_exprs)]
|
2021-08-06 14:20:59 +01:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
extern crate generics_of_parent_impl_trait;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// check for `impl Trait<{ const }>` which has a parent of a `DefKind::TyParam`
|
|
|
|
generics_of_parent_impl_trait::foo([()]);
|
2022-07-13 17:28:11 -07:00
|
|
|
//~^ error: type annotations needed
|
2021-08-06 14:20:59 +01:00
|
|
|
}
|