rlx-tensor 0.2.14

Native ndarray alternative for RLX — NumPy-style tensors that trace, fuse, and run on any backend via the rlx compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RLX — versatile ML compiler + runtime.
// Copyright (C) 2026 Eugene Hauptmann, Nataliya Kosmyna.
// SPDX-License-Identifier: MIT OR Apache-2.0

//! UI (compile-fail) tests locking in the `rlx!` DSL's error diagnostics — each
//! `tests/ui/*.rs` case must fail with the message in its paired `.stderr`.
//! These pin the *spans* of our own `compile_error!`s (not downstream rustc
//! type errors), complementing the message-content checks in the proc macro's
//! own unit tests. Run: `cargo test -p rlx-tensor --features dsl --test ui`
//! (regenerate snapshots with `TRYBUILD=overwrite`).
#![cfg(feature = "dsl")]

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