summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-94675.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/issue-94675.rs')
-rw-r--r--tests/ui/consts/issue-94675.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/consts/issue-94675.rs b/tests/ui/consts/issue-94675.rs
index ce21ebdb9..38c8129b8 100644
--- a/tests/ui/consts/issue-94675.rs
+++ b/tests/ui/consts/issue-94675.rs
@@ -7,8 +7,9 @@ struct Foo<'a> {
impl<'a> Foo<'a> {
const fn spam(&mut self, baz: &mut Vec<u32>) {
self.bar[0] = baz.len();
- //~^ the trait bound `Vec<usize>: ~const Index<_>` is not satisfied
- //~| the trait bound `Vec<usize>: ~const IndexMut<usize>` is not satisfied
+ //~^ ERROR: cannot call
+ //~| ERROR: cannot call
+ //~| ERROR: the trait bound
}
}