@@ -2,76 +2,76 @@ error[E0308]: mismatched types
22 --> $DIR/substs-ppaux.rs:16:17
33 |
44LL | fn bar<'a, T>() where T: 'a {}
5- | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic , u8>>::bar::<ReStatic , char>} defined here
5+ | --------------------------- fn() {<i8 as Foo<'static, 'static , u8>>::bar::<'static , char>} defined here
66...
77LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>;
88 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
99 | |
1010 | expected due to this
1111 |
1212 = note: expected unit type `()`
13- found fn item `fn() {<i8 as Foo<ReStatic, ReStatic , u8>>::bar::<ReStatic , char>}`
13+ found fn item `fn() {<i8 as Foo<'static, 'static , u8>>::bar::<'static , char>}`
1414help: use parentheses to call this associated function
1515 |
1616LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>();
1717 | ++
1818
1919error[E0308]: mismatched types
20- --> $DIR/substs-ppaux.rs:25 :17
20+ --> $DIR/substs-ppaux.rs:22 :17
2121 |
2222LL | fn bar<'a, T>() where T: 'a {}
23- | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic >>::bar::<ReStatic , char>} defined here
23+ | --------------------------- fn() {<i8 as Foo<'static, 'static >>::bar::<'static , char>} defined here
2424...
2525LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>;
2626 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
2727 | |
2828 | expected due to this
2929 |
3030 = note: expected unit type `()`
31- found fn item `fn() {<i8 as Foo<ReStatic, ReStatic >>::bar::<ReStatic , char>}`
31+ found fn item `fn() {<i8 as Foo<'static, 'static >>::bar::<'static , char>}`
3232help: use parentheses to call this associated function
3333 |
3434LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>();
3535 | ++
3636
3737error[E0308]: mismatched types
38- --> $DIR/substs-ppaux.rs:33 :17
38+ --> $DIR/substs-ppaux.rs:27 :17
3939 |
4040LL | fn baz() {}
41- | -------- fn() {<i8 as Foo<ReStatic, ReStatic , u8>>::baz} defined here
41+ | -------- fn() {<i8 as Foo<'static, 'static , u8>>::baz} defined here
4242...
4343LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz;
4444 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
4545 | |
4646 | expected due to this
4747 |
4848 = note: expected unit type `()`
49- found fn item `fn() {<i8 as Foo<ReStatic, ReStatic , u8>>::baz}`
49+ found fn item `fn() {<i8 as Foo<'static, 'static , u8>>::baz}`
5050help: use parentheses to call this associated function
5151 |
5252LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz();
5353 | ++
5454
5555error[E0308]: mismatched types
56- --> $DIR/substs-ppaux.rs:41 :17
56+ --> $DIR/substs-ppaux.rs:32 :17
5757 |
5858LL | fn foo<'z>() where &'z (): Sized {
59- | -------------------------------- fn() {foo::<ReStatic >} defined here
59+ | -------------------------------- fn() {foo::<'static >} defined here
6060...
6161LL | let x: () = foo::<'static>;
6262 | -- ^^^^^^^^^^^^^^ expected `()`, found fn item
6363 | |
6464 | expected due to this
6565 |
6666 = note: expected unit type `()`
67- found fn item `fn() {foo::<ReStatic >}`
67+ found fn item `fn() {foo::<'static >}`
6868help: use parentheses to call this function
6969 |
7070LL | let x: () = foo::<'static>();
7171 | ++
7272
7373error[E0277]: the size for values of type `str` cannot be known at compilation time
74- --> $DIR/substs-ppaux.rs:49 :5
74+ --> $DIR/substs-ppaux.rs:37 :5
7575 |
7676LL | <str as Foo<u8>>::bar;
7777 | ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
0 commit comments