E0201

A trait where a type is expected (x: Display), or a type where a trait is expected (T: Int).

Machine-applicable fix: none.

Example

This program fails with E0201.

fn show(x: Display) {}

Fixed

The same program, fixed.

fn show<T: Display>(x: T) {}

Listed in the checker notes. oskac explain E0201 prints this entry offline.

All error codes