# Rust: error[E0599]: no method named `push_str` found for struct `Vec<String>` in the current scope

**Code:** `E0599: no method named found for type` · **Category:** Rust · **Seen on:** Rust

The type doesn't have that method — wrong type, trait not in scope, or missing derive/feature.

## Meaning

Check the actual type (`let x: () = x;` trick), import the trait that provides the method (`use std::io::Write;`, `use std::str::FromStr;`), enable crate features, derive traits (`Clone`), and note methods on `Option`/`Result` need unwrapping first. Arrays vs slices vs Vec differ.

## Common causes

- Trait not imported (`use std::io::Write`)
- Wrong type (Option<T> instead of T)
- Crate feature not enabled
- Missing `#[derive(Clone)]` for `.clone()`
- Method exists only on a different type

## Quick fix

1. Import the trait providing the method
2. Unwrap/map the `Option`/`Result` first
3. Enable the needed feature in Cargo.toml

## Detailed fix by platform

### Rust

1. `use std::io::Write; stdout.flush()?;`

## How to diagnose

1. **Type** — What is it?
2. **Trait** — In scope?
3. **Feature** — Enabled?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/rust/e0599-no-method-named-found)
