Add a test for #3137
This commit is contained in:
parent
284583fade
commit
2d0487164f
@ -92,6 +92,14 @@ macro_rules! foo {
|
||||
|
||||
type Target = ( FooAPI ) + 'static;
|
||||
|
||||
// #3137
|
||||
fn foo<T>(t: T)
|
||||
where
|
||||
T: ( FnOnce() -> () ) + Clone,
|
||||
U: ( FnOnce() -> () ) + 'static,
|
||||
{
|
||||
}
|
||||
|
||||
// #3117
|
||||
fn issue3117() {
|
||||
{
|
||||
|
@ -91,6 +91,14 @@ macro_rules! foo {
|
||||
|
||||
type Target = (FooAPI) + 'static;
|
||||
|
||||
// #3137
|
||||
fn foo<T>(t: T)
|
||||
where
|
||||
T: (FnOnce() -> ()) + Clone,
|
||||
U: (FnOnce() -> ()) + 'static,
|
||||
{
|
||||
}
|
||||
|
||||
// #3117
|
||||
fn issue3117() {
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user