Deriving: Include bound generic params for extracted type parameters in where clause
This commit is contained in:
parent
8f8092cc32
commit
f0e99827f8
2 changed files with 54 additions and 10 deletions
14
src/test/ui/deriving/issue-89188-gat-hrtb.rs
Normal file
14
src/test/ui/deriving/issue-89188-gat-hrtb.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// check-pass
|
||||
|
||||
#![feature(generic_associated_types)]
|
||||
|
||||
trait CallWithShim: Sized {
|
||||
type Shim<'s>
|
||||
where
|
||||
Self: 's;
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
struct ShimMethod<T: CallWithShim + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::Shim<'s>));
|
||||
|
||||
pub fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue