@@ -7,7 +7,7 @@ LL | SmallCString::try_from(p).map(|cstr| cstr);
77 | type must be known at this point
88 |
99note: required by a const generic parameter in `SmallCString`
10- --> $DIR/try-from-with-const-genericsrs-98299.rs:11 :25
10+ --> $DIR/try-from-with-const-genericsrs-98299.rs:9 :25
1111 |
1212LL | pub struct SmallCString<const N: usize> {}
1313 | ^^^^^^^^^^^^^^ required by this const generic parameter in `SmallCString`
@@ -16,46 +16,6 @@ help: consider giving this closure parameter an explicit type, where the value o
1616LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
1717 | +++++++++++++++++
1818
19- error[E0284]: type annotations needed for `SmallCString<_>`
20- --> $DIR/try-from-with-const-genericsrs-98299.rs:5:36
21- |
22- LL | SmallCString::try_from(p).map(|cstr| cstr);
23- | ------------ ^^^^
24- | |
25- | type must be known at this point
26- |
27- note: required for `SmallCString<_>` to implement `TryFrom<()>`
28- --> $DIR/try-from-with-const-genericsrs-98299.rs:13:22
29- |
30- LL | impl<const N: usize> TryFrom<()> for SmallCString<N> {
31- | -------------- ^^^^^^^^^^^ ^^^^^^^^^^^^^^^
32- | |
33- | unsatisfied trait bound introduced here
34- help: consider giving this closure parameter an explicit type, where the value of const parameter `N` is specified
35- |
36- LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
37- | +++++++++++++++++
38-
39- error[E0284]: type annotations needed for `SmallCString<_>`
40- --> $DIR/try-from-with-const-genericsrs-98299.rs:5:36
41- |
42- LL | SmallCString::try_from(p).map(|cstr| cstr);
43- | ------------------------- ^^^^
44- | |
45- | type must be known at this point
46- |
47- note: required for `SmallCString<_>` to implement `TryFrom<()>`
48- --> $DIR/try-from-with-const-genericsrs-98299.rs:13:22
49- |
50- LL | impl<const N: usize> TryFrom<()> for SmallCString<N> {
51- | -------------- ^^^^^^^^^^^ ^^^^^^^^^^^^^^^
52- | |
53- | unsatisfied trait bound introduced here
54- help: consider giving this closure parameter an explicit type, where the value of const parameter `N` is specified
55- |
56- LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
57- | +++++++++++++++++
58-
59- error: aborting due to 3 previous errors
19+ error: aborting due to 1 previous error
6020
6121For more information about this error, try `rustc --explain E0284`.
0 commit comments