mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
* crown: Support Rc<T::Promise> and callback objects parameterized over a trait.. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * crown: Verify that attributes match between trait associated types and impls. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * crown: Check type aliases as part of associated type checks. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * crown: Add periods to all diagnostic messages. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix compile-fail test expectations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
16 lines
448 B
Rust
16 lines
448 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
//@rustc-env:RUSTC_BOOTSTRAP=1
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#[crown::unrooted_must_root_lint::must_root]
|
|
struct MustBeRooted;
|
|
|
|
#[crown::unrooted_must_root_lint::allow_unrooted_interior]
|
|
struct CanBeUnrooted {
|
|
val: MustBeRooted,
|
|
}
|
|
|
|
fn main() {}
|