geometry-model 0.0.8

Built-in concrete geometry types (Point, Segment, Box, Linestring, Polygon, …) mirroring Boost.Geometry models — or bring your own via the concept traits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Trybuild harness for compile-fail fixtures under `tests/ui/`.
//!
//! Mirrors the spirit of
//! `boost/geometry/test/concepts/point_with_incorrect_dimension.cpp`:
//! constructing a point with the wrong number of coordinates must fail
//! at compile time, not produce silently-truncated data.

#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/wrong_arity.rs");
}