]> git.proxmox.com Git - rustc.git/blame - src/test/ui/substs-ppaux.verbose.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / substs-ppaux.verbose.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/substs-ppaux.rs:16:17
b7449926 3 |
416331ca
XL
4LL | fn bar<'a, T>() where T: 'a {}
5 | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>} defined here
6...
b7449926 7LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>;
ba9703b0
XL
8 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
9 | |
60c5eb7d 10 | expected due to this
b7449926 11 |
60c5eb7d
XL
12 = note: expected unit type `()`
13 found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::bar::<ReStatic, char>}`
ba9703b0
XL
14help: use parentheses to call this function
15 |
16LL | let x: () = <i8 as Foo<'static, 'static, u8>>::bar::<'static, char>();
17 | ^^
b7449926
XL
18
19error[E0308]: mismatched types
0731742a 20 --> $DIR/substs-ppaux.rs:25:17
b7449926 21 |
416331ca
XL
22LL | fn bar<'a, T>() where T: 'a {}
23 | --------------------------- fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>} defined here
24...
b7449926 25LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>;
ba9703b0
XL
26 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
27 | |
60c5eb7d 28 | expected due to this
b7449926 29 |
60c5eb7d
XL
30 = note: expected unit type `()`
31 found fn item `fn() {<i8 as Foo<ReStatic, ReStatic>>::bar::<ReStatic, char>}`
ba9703b0
XL
32help: use parentheses to call this function
33 |
34LL | let x: () = <i8 as Foo<'static, 'static, u32>>::bar::<'static, char>();
35 | ^^
b7449926
XL
36
37error[E0308]: mismatched types
0731742a 38 --> $DIR/substs-ppaux.rs:33:17
b7449926 39 |
416331ca
XL
40LL | fn baz() {}
41 | -------- fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz} defined here
42...
b7449926 43LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz;
ba9703b0
XL
44 | -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found fn item
45 | |
60c5eb7d 46 | expected due to this
b7449926 47 |
60c5eb7d
XL
48 = note: expected unit type `()`
49 found fn item `fn() {<i8 as Foo<ReStatic, ReStatic, u8>>::baz}`
ba9703b0
XL
50help: use parentheses to call this function
51 |
52LL | let x: () = <i8 as Foo<'static, 'static, u8>>::baz();
53 | ^^
b7449926
XL
54
55error[E0308]: mismatched types
0731742a 56 --> $DIR/substs-ppaux.rs:41:17
b7449926 57 |
416331ca
XL
58LL | fn foo<'z>() where &'z (): Sized {
59 | -------------------------------- fn() {foo::<ReStatic>} defined here
60...
b7449926 61LL | let x: () = foo::<'static>;
ba9703b0
XL
62 | -- ^^^^^^^^^^^^^^ expected `()`, found fn item
63 | |
60c5eb7d 64 | expected due to this
b7449926 65 |
60c5eb7d
XL
66 = note: expected unit type `()`
67 found fn item `fn() {foo::<ReStatic>}`
ba9703b0
XL
68help: use parentheses to call this function
69 |
70LL | let x: () = foo::<'static>();
71 | ^^
b7449926
XL
72
73error[E0277]: the size for values of type `str` cannot be known at compilation time
0731742a 74 --> $DIR/substs-ppaux.rs:49:5
b7449926 75 |
e1599b0c 76LL | fn bar<'a, T>() where T: 'a {}
ba9703b0 77 | -- required by this bound in `Foo::bar`
e1599b0c 78...
b7449926
XL
79LL | <str as Foo<u8>>::bar;
80 | ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
81 |
1b1a35ee 82 = help: the trait `Sized` is not implemented for `str`
b7449926 83 = note: required because of the requirements on the impl of `Foo<'_#0r, '_#1r, u8>` for `str`
b7449926
XL
84
85error: aborting due to 5 previous errors
86
48663c56 87Some errors have detailed explanations: E0277, E0308.
b7449926 88For more information about an error, try `rustc --explain E0277`.