diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-13 17:35:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-13 17:35:34 +0200 |
| commit | 648d65ac7b9c8309620dc86ee60cebafe2a811e2 (patch) | |
| tree | a746c3bc511f7f9f3e0f1149525094319dc3c0d4 /library/std/src/sys/unix/stdio.rs | |
| parent | 032358bd30d2eaa31cdec4a40d8a4703fbec22cc (diff) | |
| parent | 9b9f6771049ecd30f13138c32f23ba6562a613d5 (diff) | |
| download | rust-648d65ac7b9c8309620dc86ee60cebafe2a811e2.tar.gz rust-648d65ac7b9c8309620dc86ee60cebafe2a811e2.zip | |
Rollup merge of #95991 - PoorlyDefinedBehaviour:fix/issue_95898, r=fee1-dead
fix: wrong trait import suggestion for T:
The suggestion to bound `T` had an extra `:`.
```rust
fn foo<T:>(t: T) {
t.clone();
}
```
```
error[E0599]: no method named `clone` found for type parameter `T` in the current scope
--> src/lib.rs:2:7
|
2 | t.clone();
| ^^^^^ method not found in `T`
|
= help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `T` with it:
|
1 | fn foo<T: Clone:>(t: T) {
| ~~~~~~~~
```
Fixes: #95898
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions
