Add a test for #3137

This commit is contained in:
Seiichi Uchida 2018-10-26 16:36:01 +09:00
parent 284583fade
commit 2d0487164f
2 changed files with 16 additions and 0 deletions

View File

@ -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() {
{

View File

@ -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() {
{