2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/substs-ppaux.rs:16:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-07 00:29:10 -05:00
|
|
|
LL | fn bar<'a, T>() where T: 'a {}
|
|
|
|
| --------------------------- fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>} defined here
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>;
|
2019-08-07 00:29:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected (), found fn item
|
|
|
|
| help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/substs-ppaux.rs:25:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-07 00:29:10 -05:00
|
|
|
LL | fn bar<'a, T>() where T: 'a {}
|
|
|
|
| --------------------------- fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>} defined here
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>;
|
2019-08-07 00:29:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected (), found fn item
|
|
|
|
| help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u32>>::bar::<'static, char>()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/substs-ppaux.rs:33:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-07 00:29:10 -05:00
|
|
|
LL | fn baz() {}
|
|
|
|
| -------- fn() {<i8 as Foo<'static, 'static, u8>>::baz} defined here
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz;
|
2019-08-07 00:29:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected (), found fn item
|
|
|
|
| help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::baz()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `fn() {<i8 as Foo<'static, 'static, u8>>::baz}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/substs-ppaux.rs:41:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-07 00:29:10 -05:00
|
|
|
LL | fn foo<'z>() where &'z (): Sized {
|
|
|
|
| -------------------------------- fn() {foo::<'static>} defined here
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let x: () = foo::<'static>;
|
2019-08-07 00:29:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected (), found fn item
|
|
|
|
| help: use parentheses to call this function: `foo::<'static>()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `fn() {foo::<'static>}`
|
|
|
|
|
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/substs-ppaux.rs:49:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | fn bar<'a, T>() where T: 'a {}
|
2019-09-04 12:17:59 -05:00
|
|
|
| --- -- required by this bound in `Foo::bar`
|
2019-08-24 16:44:43 -05:00
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | <str as Foo<u8>>::bar;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
2019-01-01 11:53:07 -06:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2018-08-08 07:28:26 -05:00
|
|
|
= note: required because of the requirements on the impl of `Foo<'_, '_, u8>` for `str`
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0277, E0308.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0277`.
|