File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ fn hello < Q > ( ) -> Vec < Q > {
2+ Vec :: < Q > :: mew ( )
3+ //~^ ERROR no function or associated item named `mew` found for struct `Vec<Q>` in the current scope
4+ }
5+
6+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error[E0599]: no function or associated item named `mew` found for struct `Vec<Q>` in the current scope
2+ --> $DIR/bad-builder.rs:2:15
3+ |
4+ LL | Vec::<Q>::mew()
5+ | ^^^
6+ | |
7+ | function or associated item not found in `Vec<Q>`
8+ | help: there is an associated function with a similar name: `new`
9+ |
10+ note: if you're trying to build a new `Vec<Q>` consider using one of the following associated functions:
11+ Vec::<T>::new
12+ Vec::<T>::with_capacity
13+ Vec::<T>::from_raw_parts
14+ Vec::<T, A>::new_in
15+ and 2 others
16+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
17+
18+ error: aborting due to 1 previous error
19+
20+ For more information about this error, try `rustc --explain E0599`.
You can’t perform that action at this time.
0 commit comments