summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/assoc-const-ty-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/associated-consts/assoc-const-ty-mismatch.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/ui/associated-consts/assoc-const-ty-mismatch.rs b/tests/ui/associated-consts/assoc-const-ty-mismatch.rs
index c5d78469e..721163765 100644
--- a/tests/ui/associated-consts/assoc-const-ty-mismatch.rs
+++ b/tests/ui/associated-consts/assoc-const-ty-mismatch.rs
@@ -2,30 +2,30 @@
#![allow(unused)]
pub trait Foo {
- const N: usize;
+ const N: usize;
}
pub trait FooTy {
- type T;
+ type T;
}
pub struct Bar;
impl Foo for Bar {
- const N: usize = 3;
+ const N: usize = 3;
}
impl FooTy for Bar {
- type T = usize;
+ type T = usize;
}
-fn foo<F: Foo<N=usize>>() {}
-//~^ ERROR expected associated constant bound, found type
-fn foo2<F: FooTy<T=3usize>>() {}
-//~^ ERROR expected associated type bound, found constant
+fn foo<F: Foo<N = usize>>() {}
+//~^ ERROR expected constant, found type
+fn foo2<F: FooTy<T = 3usize>>() {}
+//~^ ERROR expected type, found constant
fn main() {
- foo::<Bar>();
- foo2::<Bar>();
+ foo::<Bar>();
+ foo2::<Bar>();
}