Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 428 Bytes
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
// pretty-expanded FIXME #23616
// Test that `F : Fn(isize) -> isize + Send` is interpreted as two
// distinct bounds on `F`.
fn foo1<F>(f: F)
where F : FnOnce(isize) -> isize + Send
{
bar(f);
}
fn foo2<F>(f: F)
where F : FnOnce(isize) -> isize + Send
{
baz(f);
}
fn bar<F:Send>(f: F) { }
fn baz<F:FnOnce(isize) -> isize>(f: F) { }
fn main() {}
You can’t perform that action at this time.