2021-08-06 08:20:59 -05:00
|
|
|
//@ aux-build:generics_of_parent_impl_trait.rs
|
2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2021-08-06 08:20:59 -05: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 19:28:11 -05:00
|
|
|
//~^ error: type annotations needed
|
2021-08-06 08:20:59 -05:00
|
|
|
}
|