fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: mismatched types 2 --> $DIR/substs-ppaux.rs:16:17 3 | 4LL | fn bar<'a, T>() where T: 'a {} 5 | --------------------------- fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>} defined here 6... 7LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>; 8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | | 10 | expected (), found fn item 11 | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>()` 12 | 13 = note: expected type `()` 14 found type `fn() {<i8 as Foo<'static, 'static, u8>>::bar::<'static, char>}` 15 16error[E0308]: mismatched types 17 --> $DIR/substs-ppaux.rs:25:17 18 | 19LL | fn bar<'a, T>() where T: 'a {} 20 | --------------------------- fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>} defined here 21... 22LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>; 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | | 25 | expected (), found fn item 26 | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u32>>::bar::<'static, char>()` 27 | 28 = note: expected type `()` 29 found type `fn() {<i8 as Foo<'static, 'static>>::bar::<'static, char>}` 30 31error[E0308]: mismatched types 32 --> $DIR/substs-ppaux.rs:33:17 33 | 34LL | fn baz() {} 35 | -------- fn() {<i8 as Foo<'static, 'static, u8>>::baz} defined here 36... 37LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz; 38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 39 | | 40 | expected (), found fn item 41 | help: use parentheses to call this function: `<i8 as Foo<'static, 'static, u8>>::baz()` 42 | 43 = note: expected type `()` 44 found type `fn() {<i8 as Foo<'static, 'static, u8>>::baz}` 45 46error[E0308]: mismatched types 47 --> $DIR/substs-ppaux.rs:41:17 48 | 49LL | fn foo<'z>() where &'z (): Sized { 50 | -------------------------------- fn() {foo::<'static>} defined here 51... 52LL | let x: () = foo::<'static>; 53 | ^^^^^^^^^^^^^^ 54 | | 55 | expected (), found fn item 56 | help: use parentheses to call this function: `foo::<'static>()` 57 | 58 = note: expected type `()` 59 found type `fn() {foo::<'static>}` 60 61error[E0277]: the size for values of type `str` cannot be known at compilation time 62 --> $DIR/substs-ppaux.rs:49:5 63 | 64LL | fn bar<'a, T>() where T: 'a {} 65 | --- -- required by this bound in `Foo::bar` 66... 67LL | <str as Foo<u8>>::bar; 68 | ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 69 | 70 = help: the trait `std::marker::Sized` is not implemented for `str` 71 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 72 = note: required because of the requirements on the impl of `Foo<'_, '_, u8>` for `str` 73 74error: aborting due to 5 previous errors 75 76Some errors have detailed explanations: E0277, E0308. 77For more information about an error, try `rustc --explain E0277`.