]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0276.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0276.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/E0276.rs:6:30
3    |
4 LL |     fn foo<T>(x: T);
5    |     ---------------- definition of `foo` from trait
6 ...
7 LL |     fn foo<T>(x: T) where T: Copy {}
8    |                              ^^^^ impl has extra requirement `T: Copy`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0276`.