summaryrefslogtreecommitdiff
path: root/src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs')
-rw-r--r--src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs b/src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs
index cb6e5768049..1ef15444790 100644
--- a/src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs
+++ b/src/test/ui/rfc1598-generic-associated-types/streaming_iterator.rs
@@ -1,7 +1,7 @@
#![feature(generic_associated_types)]
//~^ WARNING the feature `generic_associated_types` is incomplete
-// FIXME(#44265): "lifetime parameter not allowed on this type" errors will be addressed in a
+// FIXME(#44265): "lifetime argument not allowed on this type" errors will be addressed in a
// follow-up PR
use std::fmt::Display;
@@ -10,13 +10,13 @@ trait StreamingIterator {
type Item<'a>;
// Applying the lifetime parameter `'a` to `Self::Item` inside the trait.
fn next<'a>(&'a self) -> Option<Self::Item<'a>>;
- //~^ ERROR lifetime parameters are not allowed on this type [E0110]
+ //~^ ERROR lifetime arguments are not allowed on this entity [E0110]
}
struct Foo<T: StreamingIterator> {
// Applying a concrete lifetime to the constructor outside the trait.
bar: <T as StreamingIterator>::Item<'static>,
- //~^ ERROR lifetime parameters are not allowed on this type [E0110]
+ //~^ ERROR lifetime arguments are not allowed on this entity [E0110]
}
// Users can bound parameters by the type constructed by that trait's associated type constructor
@@ -24,7 +24,7 @@ struct Foo<T: StreamingIterator> {
//FIXME(sunjay): This next line should parse and be valid
//fn foo<T: for<'a> StreamingIterator<Item<'a>=&'a [i32]>>(iter: T) { /* ... */ }
fn foo<T>(iter: T) where T: StreamingIterator, for<'a> T::Item<'a>: Display { /* ... */ }
-//~^ ERROR lifetime parameters are not allowed on this type [E0110]
+//~^ ERROR lifetime arguments are not allowed on this entity [E0110]
// Full example of enumerate iterator
@@ -36,9 +36,9 @@ struct StreamEnumerate<I> {
impl<I: StreamingIterator> StreamingIterator for StreamEnumerate<I> {
type Item<'a> = (usize, I::Item<'a>);
- //~^ ERROR lifetime parameters are not allowed on this type [E0110]
+ //~^ ERROR lifetime arguments are not allowed on this entity [E0110]
fn next<'a>(&'a self) -> Option<Self::Item<'a>> {
- //~^ ERROR lifetime parameters are not allowed on this type [E0110]
+ //~^ ERROR lifetime arguments are not allowed on this entity [E0110]
match self.iter.next() {
None => None,
Some(val) => {