// revisions: cfail #![feature(generic_const_exprs)] #![allow(incomplete_features, unused_braces)] trait Delegates {} struct FileCap {} fn writes_to_path(cap: &C) where C: Delegates>, { writes_to_specific_path(&cap); //~^ error: the trait bound } fn writes_to_specific_path(cap: &C) where C: Delegates>, { } fn main() {}