diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-18611.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-18611.rs b/src/test/ui/issues/issue-18611.rs new file mode 100644 index 000000000..91a765f34 --- /dev/null +++ b/src/test/ui/issues/issue-18611.rs @@ -0,0 +1,9 @@ +fn add_state(op: <isize as HasState>::State) { +//~^ ERROR `isize: HasState` is not satisfied +} + +trait HasState { + type State; +} + +fn main() {} |