|
1 | 1 | error[E0277]: the trait bound `PkSk: From<&str>` is not satisfied |
2 | 2 | --> tests/ui/using-pk-instead-of-pk-sk.rs |
3 | 3 | | |
4 | | - | let user: Option<User> = table.get(" [email protected]").await?; |
5 | | - | --- ^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
6 | | - | | |
7 | | - | required by a bound introduced by this call |
8 | | - | |
9 | | - = help: the trait `From<&str>` is not implemented for `PkSk` |
10 | | - but trait `From<(_, _)>` is implemented for it |
11 | | - = help: for that trait implementation, expected `(_, _)`, found `&str` |
12 | | - = note: required for `&str` to implement `Into<PkSk>` |
| 4 | + 25 | let user: Option<User> = table.get(" [email protected]").await?; |
| 5 | + | --- ^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
| 6 | + | | |
| 7 | + | required by a bound introduced by this call |
| 8 | + | |
| 9 | + = help: the trait `From<&str>` is not implemented for `PkSk` |
| 10 | + but trait `From<(_, _)>` is implemented for it |
| 11 | + = help: for that trait implementation, expected `(_, _)`, found `&str` |
| 12 | + = note: required for `&str` to implement `Into<PkSk>` |
13 | 13 | note: required by a bound in `EncryptedTable::get` |
14 | | - --> src/encrypted_table/mod.rs |
15 | | - | |
16 | | - | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
17 | | - | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
| 14 | + --> src/encrypted_table/mod.rs |
| 15 | + | |
| 16 | + | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
| 17 | + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
18 | 18 |
|
19 | 19 | error[E0277]: the trait bound `PkSk: From<&str>` is not satisfied |
20 | 20 | --> tests/ui/using-pk-instead-of-pk-sk.rs |
21 | 21 | | |
22 | | - | let user: Option<User> = table.get(" [email protected]").await?; |
23 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
24 | | - | |
25 | | - = help: the trait `From<&str>` is not implemented for `PkSk` |
26 | | - but trait `From<(_, _)>` is implemented for it |
27 | | - = help: for that trait implementation, expected `(_, _)`, found `&str` |
28 | | - = note: required for `&str` to implement `Into<PkSk>` |
| 22 | + 25 | let user: Option<User> = table.get(" [email protected]").await?; |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
| 24 | + | |
| 25 | + = help: the trait `From<&str>` is not implemented for `PkSk` |
| 26 | + but trait `From<(_, _)>` is implemented for it |
| 27 | + = help: for that trait implementation, expected `(_, _)`, found `&str` |
| 28 | + = note: required for `&str` to implement `Into<PkSk>` |
29 | 29 | note: required by a bound in `EncryptedTable::get` |
30 | | - --> src/encrypted_table/mod.rs |
31 | | - | |
32 | | - | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
33 | | - | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
| 30 | + --> src/encrypted_table/mod.rs |
| 31 | + | |
| 32 | + | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
| 33 | + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
34 | 34 |
|
35 | 35 | error[E0277]: the trait bound `PkSk: From<&str>` is not satisfied |
36 | 36 | --> tests/ui/using-pk-instead-of-pk-sk.rs |
37 | 37 | | |
38 | | - | let user: Option<User> = table.get(" [email protected]").await?; |
39 | | - | ^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
40 | | - | |
41 | | - = help: the trait `From<&str>` is not implemented for `PkSk` |
42 | | - but trait `From<(_, _)>` is implemented for it |
43 | | - = help: for that trait implementation, expected `(_, _)`, found `&str` |
44 | | - = note: required for `&str` to implement `Into<PkSk>` |
| 38 | + 25 | let user: Option<User> = table.get(" [email protected]").await?; |
| 39 | + | ^^^^^ the trait `From<&str>` is not implemented for `PkSk` |
| 40 | + | |
| 41 | + = help: the trait `From<&str>` is not implemented for `PkSk` |
| 42 | + but trait `From<(_, _)>` is implemented for it |
| 43 | + = help: for that trait implementation, expected `(_, _)`, found `&str` |
| 44 | + = note: required for `&str` to implement `Into<PkSk>` |
45 | 45 | note: required by a bound in `EncryptedTable::get` |
46 | | - --> src/encrypted_table/mod.rs |
47 | | - | |
48 | | - | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
49 | | - | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
| 46 | + --> src/encrypted_table/mod.rs |
| 47 | + | |
| 48 | + | pub async fn get<T>(&self, k: impl Into<T::PrimaryKey>) -> Result<Option<T>, GetError> |
| 49 | + | ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptedTable::get` |
0 commit comments