diff options
Diffstat (limited to 'tests/ui/associated-type-bounds/consts.rs')
-rw-r--r-- | tests/ui/associated-type-bounds/consts.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/consts.rs b/tests/ui/associated-type-bounds/consts.rs new file mode 100644 index 000000000..9b95b1b52 --- /dev/null +++ b/tests/ui/associated-type-bounds/consts.rs @@ -0,0 +1,10 @@ +#![feature(associated_type_bounds)] + +pub fn accept(_: impl Trait<K: Copy>) {} +//~^ ERROR expected associated type, found associated constant + +pub trait Trait { + const K: i32; +} + +fn main() {} |