11//@ compile-flags: -Znormalize-docs
2+ //@ dont-require-annotations: NOTE
3+
24// https://github.com/rust-lang/rust/issues/105742
35use std:: ops:: Index ;
46
57pub fn next < ' a , T > ( s : & ' a mut dyn SVec < Item = T , Output = T > ) {
6- //~^ expected 1 lifetime argument
7- //~| expected 1 generic argument
8+ //~^ NOTE expected 1 lifetime argument
9+ //~| NOTE expected 1 generic argument
810 //~| ERROR the trait `SVec` is not dyn compatible
9- //~| `SVec` is not dyn compatible
11+ //~| NOTE `SVec` is not dyn compatible
1012 //~| ERROR missing generics for associated type `SVec::Item`
1113 //~| ERROR missing generics for associated type `SVec::Item`
1214 let _ = s;
1315}
1416
1517pub trait SVec : Index <
1618 <Self as SVec >:: Item ,
17- //~^ expected 1 lifetime argument
18- //~| expected 1 generic argument
19+ //~^ NOTE expected 1 lifetime argument
20+ //~| NOTE expected 1 generic argument
1921 //~| ERROR missing generics for associated type `SVec::Item`
2022 //~| ERROR missing generics for associated type `SVec::Item`
2123 //~| ERROR missing generics for associated type `SVec::Item`
@@ -25,8 +27,8 @@ pub trait SVec: Index<
2527 //~| ERROR missing generics for associated type `SVec::Item`
2628 //~| ERROR missing generics for associated type `SVec::Item`
2729 Output = <Index < <Self as SVec >:: Item ,
28- //~^ expected 1 lifetime argument
29- //~| expected 1 generic argument
30+ //~^ NOTE expected 1 lifetime argument
31+ //~| NOTE expected 1 generic argument
3032 //~| ERROR missing generics for associated type `SVec::Item`
3133 //~| ERROR missing generics for associated type `SVec::Item`
3234 //~| ERROR missing generics for associated type `SVec::Item`
@@ -36,16 +38,16 @@ pub trait SVec: Index<
3638 //~| ERROR missing generics for associated type `SVec::Item`
3739 //~| ERROR missing generics for associated type `SVec::Item`
3840 Output = <Self as SVec >:: Item > as SVec >:: Item ,
39- //~^ expected 1 lifetime argument
40- //~| expected 1 generic argument
41- //~| expected 1 lifetime argument
41+ //~^ NOTE expected 1 lifetime argument
42+ //~| NOTE expected 1 generic argument
43+ //~| NOTE expected 1 lifetime argument
4244 //~| ERROR missing generics for associated type `SVec::Item`
4345 //~| ERROR missing generics for associated type `SVec::Item`
4446 //~| ERROR missing generics for associated type `SVec::Item`
4547 //~| ERROR missing generics for associated type `SVec::Item`
4648 //~| ERROR missing generics for associated type `SVec::Item`
4749 //~| ERROR missing generics for associated type `SVec::Item`
48- //~| expected 1 generic argument
50+ //~| NOTE expected 1 generic argument
4951 //~| ERROR missing generics for associated type `SVec::Item`
5052 //~| ERROR missing generics for associated type `SVec::Item`
5153 //~| ERROR missing generics for associated type `SVec::Item`
@@ -60,8 +62,8 @@ pub trait SVec: Index<
6062 type Item < ' a , T > ;
6163
6264 fn len ( & self ) -> <Self as SVec >:: Item ;
63- //~^ expected 1 lifetime argument
65+ //~^ NOTE expected 1 lifetime argument
6466 //~| ERROR missing generics for associated type `SVec::Item`
65- //~| expected 1 generic argument
67+ //~| NOTE expected 1 generic argument
6668 //~| ERROR missing generics for associated type `SVec::Item`
6769}
0 commit comments