diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-20162.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-20162.rs b/src/test/ui/issues/issue-20162.rs new file mode 100644 index 000000000..b491bc37f --- /dev/null +++ b/src/test/ui/issues/issue-20162.rs @@ -0,0 +1,7 @@ +struct X { x: i32 } + +fn main() { + let mut b: Vec<X> = vec![]; + b.sort(); + //~^ ERROR `X: Ord` is not satisfied +} |