forked from mirrors/gecko-dev
Addresses issue #10702 the tidy self-test doesn't seem to catch the `member_name:"Foo"` line like it should. the regex follows similar pattern in the file and works in my regex tester tool, so not really sure what is going on there. Source-Repo: https://github.com/servo/servo Source-Revision: 8c2c0bd964bfbf1a2d7494bd8fbbdd263173ef7d
44 lines
886 B
Rust
44 lines
886 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
use app_units::Au;
|
|
use azure::azure_hl::{AntialiasMode, Color,
|
|
ColorPattern, CompositionOp};
|
|
use euclid::size::Size2D;
|
|
use azure::azure::AzIntSize;
|
|
|
|
use std;
|
|
|
|
mod paint_context;
|
|
pub mod display_list;
|
|
mod test::{
|
|
};
|
|
|
|
extern crate webrender_traits;
|
|
extern crate style_traits;
|
|
|
|
impl test {
|
|
|
|
fn test_fun(y:f32)->f32{
|
|
let x=5;
|
|
x = x-1;
|
|
x = x*x;
|
|
let z = match y {
|
|
1 =>2,
|
|
2 => 1,
|
|
};
|
|
let z = &Vec<T>;
|
|
struct Member {
|
|
member_name:"Foo"
|
|
member_id:5
|
|
}
|
|
}
|
|
|
|
fn test_fun2(y : &String, z : &Vec<f32>) -> f32 {
|
|
let x = true;
|
|
x
|
|
&& x;
|
|
}
|
|
|
|
}
|